Farming
Farms may also keep animals. That is called animal husbandry. If they are used to make meat for people to eat, that is livestock production. Non-meat animals, such as milk cows and egg-producing chickens, are kept for their produce. "Produce" here means their eggs and milk, which are sold by the farm, usually in markets. Large animals need grassland of some kind for grazing. What they need depends on the animals. Goats eat a much wider range of plants than cows. In some parts of the world, that makes goats a more sensible choice for a farmer than cows.