The exact cause of phantom limb pain is not fully understood, but it is believed to involve a combination of factors. These include the reorganization of the brain's somatosensory cortex, peripheral nerve damage, and the emotional stress associated with losing a limb. In the context of cancer, treatments such as surgery, chemotherapy, and radiation can also contribute to nerve damage, exacerbating the sensation of pain.