Non-teachers seem to greatly underestimate the time spent by teachers. Growing up, my mother and two of my aunts were teachers. My brother is a teacher now. They routinely spend upwards of 80 hours a week teaching, grading papers, preparing lesson plans, and contacting parents. They also have to spend time before and after school and at lunch monitoring students (making sure they don't run into the road, keep arguments from breaking out into fights, etc.)
Teaching is not a 9 to 5 job with 12 weeks of vacation a year.
The median salary in San Francisco is about $70k per year. How many developers would accept that as a salary in SF these days? Yet you would still claim that teachers get paid well.