Constipation in cancer patients can result from several factors. Cancer itself can cause blockages or impair bowel function, while treatments such as chemotherapy, radiation therapy, and certain medications like opioid pain relievers can also contribute to constipation. Additionally, reduced physical activity and dietary changes can exacerbate the problem.