Anabolic steroids work by stimulating muscle and bone growth, which can be crucial in managing muscle wasting and fatigue often seen in cancer patients. These steroids bind to androgen receptors in cells, leading to increased protein synthesis and muscle mass. This can help improve strength, physical function, and overall quality of life for cancer patients.