Cancer patients often have weakened immune systems due to the disease itself or as a result of treatments like chemotherapy and radiation therapy. This makes them more susceptible to infections. Antibiotics are used to treat these infections and prevent complications. In some cases, prophylactic antibiotics are administered to prevent infections before they occur, especially during periods of severe neutropenia.