Cancer and its treatments can lead to hypercoagulability, a state in which the blood has an increased tendency to clot. Warfarin is prescribed to reduce the risk of clot formation, which can lead to serious complications such as stroke, heart attack, and pulmonary embolism. By maintaining a therapeutic level of anticoagulation, Warfarin helps mitigate these risks.