Sheep, Goats, octopuses and toads all have rectangular pupils (although they appear as slightly oval due to the rounded nature of the eye). The evolution of how this came to be is an unsolved mystery but i guess it helps them evade all the predators who hunt them both night and day.