Full-featured eyes have developed a few times independently [0], so it could be that mammals and squids have evolved on different branches that split before the common ancestors had eyes as a feature.
[0] https://en.wikipedia.org/wiki/Evolution_of_the_eye#Origins_o...