Sheep, goats, octopuses and toads have rectangular shaped pupils. These animals need to have a defense both day and night, but they don’t have vertical slits like cats since they need to survey their surroundings more accurately. – WTF Fun Facts
Source: https://www.science20.com/variety_tap/evolution_rectangular_eye