Xerostomia often occurs in cancer patients as a result of radiation therapy, particularly when the head and neck regions are treated. It can also be a side effect of certain chemotherapy drugs. These treatments can damage the salivary glands, leading to reduced saliva production.