When the air we breathe contains germs, our immune system protects the lungs from infection. In fact, the bacteria and viruses that can cause pneumonia are commonly found in the air we breathe, but our body normally keeps them from entering our lungs and causing a problem.