Cancer can cause musculoskeletal pain through various mechanisms. Primary or metastatic tumors can directly invade the bones or soft tissues, leading to pain. For instance, bone metastases are a common source of pain in cancers such as breast, prostate, and lung cancer. Additionally, tumors can press on nerves, creating pain that radiates to other areas of the body.