Cancer patients might need a pacemaker due to a range of factors, including the impact of chemotherapy and radiation therapy on the heart. Some cancer treatments can cause cardiotoxicity, leading to heart rhythm disorders. Additionally, certain cancers can directly affect the heart or its electrical pathways.