Patients recovering from major surgeries and pneumonia or patients who were on a respirator tend not to breathe very deeply. This causes parts of the lungs to collapse.