
Andrew B. answered 09/16/19
Engaging STEM Tutor specializing in Life Sciences and Mathematics
This goes back pretty far evolutionarily. Organisms adapt to their environment. If there is a signal (touch, hear, heat, light) then the organism will develop a way to detect it. Prokaryotes developed photoreceptors on their cell surface and this was passed along. Those same photoreceptors were put to use, found advantageous, and continued to be refined for that particular organisms purpose. A fly has no need to see miles out, so the eye they have evolved much different than a human. The basis of both are photoreceptors, but the application is very different.