If you are using language decently you do not use the word ‘rights’ for things that are compulsory for the person. Rights are supposed to be something we want, not something we don’t want.
The primary function of teachers is to hold innocent people against their will (in other contexts known as “imprisonment without trial”), to force them to do things they don’t want to do, to stop them doing things they do want to do, and to “train” (coerce) them to conform.
Most people hate school but do not feel entitled to say so, and many can’t bear to think about it so they hardly even know how they feel. Children are not the problem: coercion is the problem. Being forced to go to school is the problem.