As resistant as I am to many of the things the national educational system promotes, compulsory attendance is not one of those things.
Unless a child is in home-school, which has it’s own set of rules, children should be compelled to go to school and I wish it was clear through high school graduation.
In Utah where I raised my kids, they were not required to go to school when they hit their 16th birthday.
This was a problem, especially with Ute tribal kids who dropped out in droves when they turned 16, in addition to students coming from homes with lower incomes.
If they were headed to some kind of great educational or even a career preparatory experience it could be okay, but these kids dropped out and for the most part did nothing.
They did not even have jobs to keep them busy and the social repercussions were great, let alone the impact this has on these kids and society, for the rest of their lives.