Plenty of animals are nocturnal, diurnal, or sleep in non-24h windows. Evolution does whatever works.