The education children get in public schools is abysmal.
Good teachers that actually educate are exceedingly rare.
The education requirements for teachers is a sick joke. If you get a master's degree in underwater basket weaving, have a tolerance for noise, you join a teacher's union, work 9 months out of the year, get weeks of holidays, get virtue by association, a retirement, and are basically employed for life. Unfireable.
The reason teachers aren't paid more is because what they do isn't worth paying them more.
Some of the smarter ones move to private schools, but more of the good ones burn out and either leave, or stop giving a shit. Formalized regurgitation and pavlovian schedule training prepares kids for 9 to 5 bullshit. Barely. The rest is hit and miss on a garbled curriculum of mostly irrelevant filler and fluff.
You can't continue inflicting the bullshit teachers on the good ones, or on the kids. Unions have to end for certain classes of employment, but especially teaching. A vast majority of teachers need to be canned and kicked to the curb.
Kids deserve better, and that starts with honestly addressing the problem in the classroom.