Toddler hiccups occur when the diaphragm contracts involuntarily. The diaphragm is the primary muscle used when breathing. When it contracts, it causes the lungs to expand fully and fill with oxygen. When it relaxes, carbon dioxide exits the lungs.