How do people get eye cancer?

Multiple steps. Any cancer, including eye cancer, is the result of multiple insults to the cells. Some of the insults may be inherited mutations, most are environmental injuries. The cumulative effect is to increase the proliferation of cells, non-response to usual regulation, ability to invade and metastasize.