These movements increase the size of the thoracic cavity, creating lower pressure (negative pressure) inside the lungs compared to the outside air.

Muscles between the ribs contract, pulling the rib cage up and out.

How the Lungs Work - What Breathing Does for the Body - nhlbi - NIH