ATP is needed for muscle contraction as it is needed to break cross-bridges to allow relaxation in sliding filament, allowing contraction in muscles such as the diaphragm, relaxation leads to high pressure in thorax, maintaining a oxygen gradient for efficient gas exchange. Oxygen acts as the terminal electron acceptor, generating more ATP.