Environmental allergies occur when the immune system mistakenly identifies harmless substances as threats. In neonates, the immune system is still developing, making them more susceptible to these reactions. Genetic predisposition also plays a significant role. If one or both parents have allergies, the likelihood of the neonate developing similar conditions increases.