Aspiration pneumonia happens when anything other than air gets into the lungs. An example of this is when a person cannot stop vomit from going into the lungs. Patients with brain injury or other conditions that affect their ability to swallow are more likely to have vomit or food go down the trachea and into the lungs.