Chemotherapy and radiation therapy are designed to kill rapidly dividing cancer cells, but they also affect healthy cells, including those in the immune system. This can lead to a significant decrease in white blood cells, making patients more susceptible to infections. Other treatments like immunotherapy aim to boost the immune system but can also cause immune-related side effects.