Surely we would agree 7 year olds should be kept from (porn, alcochol, tobacco, working 'for money')
Of course "train-on-the-job"-style apprenticeships are education, but this gets into how blue-collar labor seems to take a backseat to tech jobs.
It has been suggested that many schemes (disallowing child work outside of family farms and firms, elongating school to mandatory "high school", and then at the other end of the spectrum, social security and "retirement") were primarily to bolster employment % issues among the rest of the population (the not young and not old), and not so much for the other intended aims (stop "bad" child labor, "education", "retirement").
I do not know if there is much truth to this, other than for Social Security where proponents said precisely that (Depression era: retiring older workers would free up employment for young men). It seems sensible that child labor laws followed a similar pattern of thinking. https://www.dol.gov/general/aboutdol/history/flsa1938