The vast majority of feed used in factory farms is inedible to humans. The primary ingredient is often the waste product from bioethanol production and distillation [1]. The edible varieties of corn, barley, oats, and alfalfa used in feed aren't that popular with people [2], are mostly produced on land that would otherwise be unproductive, and are mostly used for newborns or in the final stage before slaughter to make the meat fattier and more palatable.
[1] https://en.wikipedia.org/wiki/Distillers_grains
[2] For example, even though barley is a core ingredient to much of the alcohol industry, animal feed still accounts for two thirds of barley consumption. Most of the rest of the barley ends up in animal feed in the form of distillers grains.
Take dry grasslands for example where you could either herd goats and sheep on what nature provides or grow crops which uses a lot more water and fertilizer than the environment there produces.