Babies digestive systems are so immature, and their stomach flap thingy that keeps stuff down (ok, dunno the name) doesn't work too well, so that's why they tend to vomit.
is it called the epiglottis? or is that something else?

going to google.