Capitalism sucks at valuing things that don't give immediate profit. Education is such a thing - it has extreme ROI... 20 years down the line. Which is too long a time and it gets valued less than small changes that will bring in a little bit of money next month.
And even ignoring that(for example, at private schools), the 'consumer' here is really the parent. The child isn't in a position to choose schools, so it's really about selling to the parent. I imagine it has to be hard to get a sense of any 20-year projected ROI if you can only indirectly measure teaching quality by what your child says and standardized test scores.
The tax base that funds the schools depends on the whims of capitalism.
I suspect that education would be a much higher priority and teachers would be paid much more if children could vote.