Here in germany I would say that the median salary for teachers is quite close to a software developer's one. I know Teachers that earn more/ have more benefits with less work years experience than me. (Not complaining tho, I just hope they put that into good use)
Here some teachers live in their cars because the salary is not enough to even rent a room a reasonable commute from the school.
Not surprised Germany values education a bit higher than us.
If there is a severe shortage of labor, that'll happen. I think I remember reading about teachers being paid big bucks in Switzerland?