Schools serve the same social functions as prisons and mental institutions- to define, classify, control, and regulate people.
Is it surprising that prisons resemble factories, schools, barracks, hospitals, which all resemble prisons?
In actual fact. The manifold sexualities - those which appear with the different ages (sexualities of the infant or the child), those which become fixated on particular tastes or practices (the sexuality of the invert, the gerontophile, the fetishist), those which, in a diffuse manner, invest relationships (the sexuality of doctor and patient, teacher and student, psychiatrist and mental patient), those which haunt spaces (the sexuality of the home, the school, the prison)- all form the correlate of exact procedures of power.
To punish is the most difficult thing there is. A society such as ours needs to question every aspect of punishment as it is practiced everywhere: in the army, the schools, the factories.