This is all for the public good. Children were heavily exploited by industries before child labor laws were established. Giving children an education helps keep them out of exploitative situations; human trafficking schemes and crime rings.
There are child knuckleheads that engage in crime, but that number would definitely be higher if public school wasn’t an option.