While exercising, the muscles need additional energy as the breathing rate and volume of each breath increases to bring more oxygen into the body and remove the carbon dioxide produced.
If insufficient oxygen is available to the muscles, for instance the exercise is vigorous and/or prolonged, the heart and lungs are unable to supply sufficient oxygen.