We decided as a society that not only is education valuable for people, it's a human right. So we, as a society, have failed if we fail to provide an education for our children.
Many children don't like going to school. Some subset of children wind up acting out in a ton of different ways, but often it is disruptive to classes and wastes a ton of time. Their actions have a direct negative impact on the children who actually want to attend classes and learn. But education is the right of everyone, even children who actively resist school, so we don't remove them.
I get the point you're trying to make, that maybe our children would benefit more from just being allowed to be children, to be rowdy and play with friends, have freedom and activity instead of hours of lessons per day sitting in a chair. I get that. I even agree with it to a point.
But it's extremely asinine to suggest that somehow this is the fault of the well behaved kids or the kids who genuinely love school.