When vomit, food or liquids other than water enter the lungs, they cause a chemical reaction that makes the lungs swell up. A lot of times, when the lungs swell up, bacteria are able to multiply, which makes the pneumonia worse. Being able to swallow properly keeps the windpipe closed when food or other things pass through your throat.