Cancer can lead to electrolyte imbalances through various mechanisms. Tumors themselves can produce hormones or other substances that alter electrolyte levels. Additionally, certain cancer treatments such as chemotherapy, radiation therapy, and medications can affect how the body processes and maintains these minerals. For example, chemotherapy can cause nausea and vomiting, leading to loss of electrolytes.