Some animals have nocturnal habits to avoid predators, take advantage of cooler temperatures, or to more easily locate prey in the dark. This adaptation allows them to thrive in their environments by reducing competition with diurnal species and taking advantage of resources available at night.