Babies have a higher risk of getting pneumonia. Other things that put a child at a higher risk of pneumonia include:  immune deficiency diseases such as HIV/AIDS chronic illnesses such as heart disease or diabetes