Not everybody even deserves school. Unfortunately, society benefits from everyone having at least some education, so making school non compulsory could have more detrimental effects with overall poorer education in the populace.
With that said, I'm all for removing disruptive kids from classrooms, but they would need a more controlled environment, which is hardly feasible.
We used to have them, but most have been removed or are no longer considered acceptable options - various boarding schools for “troubled” children or military school.