Teachers are only paid for the time they work. The summer is not PTO. A teacher might elect to have their salary split into 12 monthly payments, but by no means are they being paid for summer vacation.
A lot is said about teacher pay due to seniority, but only 1/3 make it even 5 years. It’s a vastly worse job than most assume.
In that case, people should be consistent. E.g., people point out that average teacher pay (about $60,000/year) is less than the average pay of college graduates as a whole (about $65,000/year). But if you adjust that for 10 versus 12 months, the average teacher pay is equivalent to $72,000/year. Teacher pay is either higher than public sector pay, on a per month basis, or its lower than public sector pay but offers a long summer vacation. It can't be both situationally.