A hiccup occurs when the baby's diaphragm spasms and forces air through the closed vocal cords. This contraction can happen for no reason at all or for several reasons, including that the baby does any of the following: Eats too much. Eats too quickly.