When you breathe air in your diaphragm tightens and moves downward. It also increases the space in your chest cavity causing your lungs to expand.The muscles in your ribs also help to enlarge your chest cavity. This causes your rib cage to pull upward and outward when you inhale. When you exhale the exact opposite happens.