Fever in cancer patients can be triggered by several factors. One of the primary causes is the cancer itself, particularly if it has spread to multiple organs or is producing substances that affect the body's temperature regulation. Another common cause is infection, which is a significant concern for cancer patients, especially those undergoing treatments like chemotherapy that can weaken the immune system. Additionally, fever can be a side effect of certain cancer treatments, including immunotherapy and some types of targeted therapy.