According to John Taylor Gatto in “The Underground History of American Education“, public schools were forced upon children (especially young teenagers) by the end of WWII at the behest of trade unions who didn’t want the competition.
(Others authors add schools were structured to create obedient manual workers.)