In cancer patients, Beau's lines can be triggered by the physical stress and immune response associated with the disease, as well as the side effects of treatments like chemotherapy. Chemotherapy drugs can slow down nail growth, leading to the formation of these lines.