I've seen speculation that this is evolutionarily driven.
Kids do not have the wisdom to know which bitter foods are ok and which could harm you, so they avoid them all or die. By adulthood the selection pressure is much smaller because you will have learned what is safe to eat.