It's easy to imagine this is a perversion of the purpose that public schools are intended to serve, but it's not. This is the purpose public schools are intended to serve: to create conformity, by whatever means are required, in order to render a society predictable and thus manageable. In service of that purpose, individual children are disposable.
It was, if you ignored the escape hatch. Anybody unable to pass the classes can be judged to have a disability (call it "dyscalcula") and then allowed to graduate with reduced requirements.
This stuff is making a mockery of education. It has even hit college now, with many students getting extra time for tests simply because they were shameless about claiming a disability.
What is a graduation requirement for high school and what high school students know (or can read, at all) at graduation are very different, regardless of whether they graduate.
The same can be asked about the claimed requirement that students graduate as docile cogs in a pliant social machine. Like, what are the stats for that so we can assess which one is the more accurate description of the purpose of schools?