A diet that doesn't have enough iron, vitamin B12, and folic acid can cause anemia. An infection can stop bone marrow from making more red blood cells. In some diseases, the red blood cells change shape and are destroyed when they can't move through the body.
Eating a better diet can help. When an infection goes away, anemia usually does, too. Doctors can give blood transfusions if the condition doesn't get better.