The goal of the public school system is to free up working parents from schooling kids, so they can, well, work.
It became an even more pressing need once women entered the workforce in full.
This became very evident during the pandemic, when so many parents suddenly had their kids at home during working hours.
If you can afford home schooling, awesome. Most can't.