Going to school is a recent invention
Schools have existed for millennia, at first for children of rich parents, then expanded to everyone in the last few centuries.
Analogy between school and prison is excellent for this is exactly how many if not most children feel.
Children also feel that having to do chores is totalitarian, and getting only 1 hour of xbox per day is super totalitarian.
I don’t think freedom is the main factor here, because kids aren’t fully developed. They start out with many desires that are bad for themselves and others: to eat lots of sweets, to watch lots of youtube, to torment each other. At some point growing up, kids learn self-control and start making decisions that actually make them better off. But until that point, parents are responsible for what’s good for the kid, and giving kids freedom to make themselves worse off is a bad idea.