What Really Tells You to Breathe
Most people assume that the urge to breathe means the body is running out of oxygen. The truth is a little different. The main trigger for breathing is carbon dioxide, a waste gas that your cells produce as they use oxygen to release energy from food.
Carbon dioxide travels in the blood to the lungs, where it is breathed out. If you breathe more slowly than your cells require, carbon dioxide builds up and makes the blood slightly more acidic. Special sensors in the brainstem and in large blood vessels notice this change. They send a message to the muscles that control breathing, mainly the diaphragm, a dome-shaped sheet beneath the lungs. The diaphragm tightens and flattens, the chest expands, and air rushes in. All of this happens without any thought, which is why you keep breathing while you sleep.
You can take some control, since you can pause for a moment or take a deep breath on purpose. But the automatic system always wins in the end. As carbon dioxide rises, the urge to breathe grows stronger and more uncomfortable until the body makes you inhale.
The same system explains why exercise makes you pant. Working muscles make more carbon dioxide, so the brain raises both the speed and the depth of your breathing to clear it away. When you rest, the carbon dioxide level falls and your breathing slows again. Thanks to these chemical sensors, a job that is vital to life can run safely on autopilot while your mind is busy with other things.