They protect minors from adults, but they also protect adults from minors who are in transition to adulthood, whose judgment and moral structure for adult situations are mostly unformed.
There are laws about how old you have to be to drink alcohol, have sex, and do a lot of other things that even much older people screw up all the time.