Exactly why is it that earthworms have no eyes? It makes no difference if it did have eyes, as in the dark, there is no advantage to the blind or the seeing earthworm. Eyes would not affect the chances of survival of the earthworm, so it is basically insignificant in natural selection.
Assuming that earthworms once had eyes, exactly how and why did evolution get rid of the eyes?