Cancer patients may experience muscle spasms and pain due to several reasons. Tumors can compress nerves and muscles, chemotherapy and radiation therapy can cause muscle damage, and prolonged immobility can lead to muscle stiffness. Muscle relaxants can help alleviate these symptoms, improving the quality of life for cancer patients.