See here's the thing. Not they don't. They forfeit that right by being violent and disruptive.
Often kids who get their right to education taken from them are failed by their parents and/or by the schools, but the blame cannot be placed on the child for that. Every child, excepting those with significant mental illness or intellectual limitation, can and should be successfully educated. Any educational system that is incapable of handling a child's tantrum or helping a child in crisis is a failed system.
They can. And do. We have 12-year-old "children" literally robbing stores around here.
If this happens, they should exercise their right to education from inside a locked institution.
Many violent and disruptive students were just kids with special needs. And I don't mean mental conditions or anything like that.
I mean a kid that would do WAY better if he was in a trade class doing something that motivates them, rather than being frustrated and forced to endure a rubbish secondary education, several hours crammed into a small room with other people and getting nowhere.
But of course that's more difficult to implement than a generic standardising/equalising pipeline of norm-conforming average citizen production.
But of course that would mean the system needs to contemplate individuals, instead of collectives, and the system doesn't like that.