My SO taught at all 3 kinds of the school in the US, in urban and suburban areas. The pay is bad everywhere, but worst at the non-union schools. Only teachers left have no better options or believe in the religion or cause of teaching, and even they tend to leave such schools the moment they have enough experience or better options. None of this is good for the kids at such schools.
The more affluent schools can afford to hire experts and keep them. I went to a rich(er) high school and had my choice among many specialty electives and advanced placement. My SO attended a highschool that was something between prison and daycare. My friend's private school was a religious indoctrination factory. Home schooled friends were often academical average to great, all socially awkward well into adulthood, and many were taught conspiracies or outright lies as long as it fit their parents "biblical worldview".
Public school was an escape from a cult-like community for me. I'm grateful my parents were too poor to force me into an alternative until I was old enough to refuse.
It sounds like you have a beef with how citizens socialize their children into the dominant religion of the society—which is literally considered a human right[1]—and less so with how schools are funded in the U.S.
See Article 18.4 of the International Covenant on Civil and Political Rights: https://www.ohchr.org/en/instruments-mechanisms/instruments/... (“The States Parties to the present Covenant undertake to have respect for the liberty of parents and, when applicable, legal guardians to ensure the religious and moral education of their children in conformity with their own convictions.”)
American subgroups that socialize their children into community religious norms are among the most successful. For example, Mormons: https://americanaffairsjournal.org/2020/11/utahs-economic-ex....
Prohibitions on religious education in public schools—which don’t exist in many developed countries, such as Germany and Sweden—hurts the majority of people who would do better under that system.
Mormons' affluence is in spite of their faith, not because of it. Utah also has more MLMs and scams than most others.
Having lived in a cult-like religion, I'd rather be less wealthy yet mentally well than 'socialized' into magical thinking and all the various idiotic garbage I was taught. Public schools are often one of the only ways kids can escape abusive, exploitive, or otherwise unhealthy circumstances.