I think you're wildly exaggerating how many people dislike school. I've read 30-75% dislike it, but never 99%.
I have talked to a lot of people and most prefer school for various reasons, over sitting at home and learning for example. Due to corona online learning is big now almost all round the world where it doable with internet access and so on....
I hear people often say that they cannot possibly learn a single thing without being in school, which I understand very well.
I also get that school for many people gives them at least some sense of accomplishment.
Extroverts Id guess would prefer school just for the people factor, being around ones peers etc.
By liking school I was more thinking of the actual learning that goes on being tested and learning new things and actually being engaged with the stuff.
Most students that I knew even in the advanced classes were more busy getting a passing grade or doing the minimum in class. The actual few people who were not only getting a passing grade, but actually loved the learning and loved the work done in class was very few. Even A + students who could take a pride in their competence and achievements were often expressing rather negative sentiments of school.
I think most people just get through the ordeal, because you just do not have better choice. So at some point it becomes just as more rational to adjust to the thing and do your school thing rather than complain.
I think the percentage I used can be taken as "Lots and lots of people hate it, probably more than is healthy..." Not claiming how many actually love school exactly.
However just like most people I did go through school and I just can't seem to figure out anyone person that would stand up as individual who loved school.