Some points to ponder -
Every characteristic comes with a cost as well as a benefit. If an organism evolved decent light senitivity, then the chemicals and energy needed to produce and maintain that characteristic cost. So a patch of light-sensitive skin requires less cost and upkeep for the orgnaism than a fully photosensitive skin. If the patch does the same job as an enie skin, the patch orgnaism is more able to survive in marginal conditions (i.e. shortage of food).
The advantages of light sensitivity are many and obvious. Moving to and away from light - away from approaching predators, under shelter (away from predators) toward where food (photosythetic organisms) may be found, etc.
As pointed out about snake IR, a pit or photosensitive material adds a secondary level of information. You get directional detail if you have more than 1 sensor, you get movement sense, etc. It is easy to see why this would lead to an expansion of scale - the more separate sensors, the more detail the organism receives. (Assuming it is in an environment that provides relevnat information.)
If the pit then evolves a tough but somewhat transparent cover to prevent damage to a critical element of the creature’s survival, then that gives it even more advanage and you are halfway to real eyes.