I am not sure about that. Mixed farming is a thing, was historically, and nowadays its starting to creep back in as a modern ecologically friendly alternative that can help build soil where intensive farming of monocultures completely drained it.
Examples I have read about talks about improving bacterial composition, increasing the amount of carbon and nitrogen in soil, as well as advantages for no-till farming (which is increasingly being preferred, as it helps preserve the soil bacterial biome).
There are experiments with sheep, cows, and chickens, the latter in a way serves also as a form of pest control, able to devour various insects and even rodents if required.
https://www.csuchico.edu/regenerativeagriculture/ra101-section/integrating-livestock.shtml