Answer
Animals abide by their circadian rhythms that represent a cycle operating as part of the organism's internal clock. Since these rhythms are not precisely 24 hours long, they are entrained to fit the day and night cycles of the natural environment. If an animal is kept in a constant environment, its circadian rhythm won't entrain and would instead maintain a free-running cycle.
Work Step by Step
--