Pneumonia is a type of lung infection that causes swelling in the airways of the lungs. Mucus and fluid may build up inside the airways. Because a baby's lungs are tiny, this may cause coughing and difficulty breathing. Babies with pneumonia may need to be treated in the hospital