There is a state requirement that students attend school. Apparently there is no corresponding requirement that the school teach the students anything.
Armed with only that information, already I knew we were talking about my home town of Detroit: Patron City of Administrative Dysfunction.
Seriously, go read Peter’s take on it. Detroit makes dystopia fun.