Summer breaks for teachers are much shorter than for students, especially when you take into account required continuing education and professional development.
They also get more than a month of vacation during the school year: 1 week in fall, 2 weeks in winter, 1 week in spring, plus state holidays.
Even with mandatory continuing education (which many jobs require), government teachers are still getting a few months of vacation. It's not comparable to folks who have to work 11+ months every year.