Animals have to be kept in certain ways.
Chickens, for example, have to be free to scratch about and get plenty of sunlight, among other things.