Eye pain in cancer patients can arise from several sources. Primary ocular cancers like retinoblastoma or melanoma directly affect the eye. Secondary involvement occurs when cancer metastasizes to the eye from another primary site, such as breast or lung cancer. Paraneoplastic syndromes, which are rare disorders triggered by the immune response to cancer, can also affect the eyes.