Cancer can cause malabsorption through several mechanisms. Tumors in the gastrointestinal tract, such as pancreatic cancer or stomach cancer, can physically obstruct the passage of food, impairing digestion and nutrient absorption. Additionally, cancer treatments like chemotherapy and radiation therapy can damage the lining of the gastrointestinal tract, leading to malabsorption.