Pneumonia causes severe inflammation of the lungs. Tiny air sacs in the lungs known as alveoli fill with fluid. This may decrease the amount of oxygen in the blood.