Additionally they may also legally earn money. How else would children appear in movies?
The particulars vary by state, but here's a quick glimpse as to the federal perspective: http://www.dol.gov/elaws/faq/esa/flsa/026.htm
And of course one may work for one's self (start a startup) at any age.