MAS typically occurs when a fetus is stressed, often due to hypoxia (lack of oxygen), which can cause the fetus to pass meconium into the amniotic fluid. The infant can then inhale this contaminated fluid during labor or delivery. Conditions such as post-term pregnancy, preeclampsia, and maternal hypertension can increase the risk of fetal stress and subsequent meconium passage.