Compulsory schooling is just involuntary servitude for kids. "Go to this place and preform this labor or else agents of the state will hurt you until you comply."
Sorry not ok.
There is merit in the idea of cost sharing for the kids who are in school by their own volition, but as long a coercion is involved any benefits are outweighed by the moral injuries.