@AdrianRiskin The school where I teach does not enforce attendance.
The point of my post above is note that schools are Actually Very Nice. It is that different schools are very different from each other, and a lot of very different things happen within the same walls.
I’d venture that your ability to (correctly) identify mandatory attendance as being coupled to state violence comes from ideas that were developed in, among other places, schools.