When a person has pneumonia, lung tissue can fill with pus and other fluids. This makes it hard for oxygen to reach the bloodstream.