Cancer patients can develop mouth sores as a side effect of certain cancer treatments, such as chemotherapy and radiation therapy. These treatments target rapidly dividing cells, which include not only cancer cells but also healthy cells in the lining of the mouth, leading to sores and ulcers.