Babies can throw up for many reasons, like catching a bug, feeling car sick, being stressed out, crying too much, having a food allergy, getting a head injury, suffering from a bad headache, having a blocked gut, or swallowing something harmful.