Public school education is a shit show in many western countries. I'm not in the USA but all the talk about private schools and lotteries is very real. The only thing we don't have is charter schools leaching public funds.
The USA is ranked below most other western public school systems so I don’t think you can conclude “the US are doing bad because all western countries are”. It’s just a matter of priorities and the US prioritizes defense over education.