Newborns get hiccups due to an immature digestive system, which can cause an irritation of the diaphragm.