Cancer can impact hemoglobin levels through several mechanisms. For instance, malignant tumors may cause internal bleeding, leading to anemia. Certain types of cancers, like leukemia and lymphoma, directly affect blood production in the bone marrow, resulting in decreased hemoglobin levels. Furthermore, chronic diseases like cancer can lead to anemia of chronic disease, where the body does not utilize iron effectively, further reducing hemoglobin.