Kids are often not allowed to work full time and ARE required to go to school until 18.
You can consider anti-child-labor laws to be ageist, and maybe you'll be technically correct but that's irrelevant. Age discrimination actually is good in this case. Kids should be in school and shouldn't be forced to have to work.
I never understood the argument that middle class teenagers either should be given opportunities, or the opposite that they should leave those opportunities to adults. Society shouldn't be picking and choosing who gets what opportunities based on things as broad as age.