Here's your high level answer.
For thousands of years, as humans domesticated what has become the modern chicken, they (like we) scavenged a varied diet . Those birds were generally smaller, slower growing, and MUCH less productive than their modern equivalent. They roamed larger areas than people with enclosed backyard runs can provide, those areas were not monocultures of perfectly manicured bermuda grass, or zoysia, or St. Augustine, or whatever, and there was good chance they could also scaventge missed/slopped/spilled feed for other animals.
For many of us, particularly those with vanity flocks in their suburban or urban back yard, the ONLY thing our chickens eat is what we, their owners, provide them, and the only thing they produce is eggs - if we want them to be healthy and produce as many eggs as they are capable off - that means a quality, nutritionally complete feed.
For some lucky few of us, we can blend the old world with the new - quality feed to provide a solid base to their diet, and a large and varied pasture on which they can graze to round out their daily intake. Studies show that, given the choice of a WIDE variety of ingredients, chicknes are actually pretty good at balancing their own diet. The problems arise when they either don't have that wide variety, or the wide variety is nevertheless missing key nutritional components. Examples - chickens essently can't use phytate (that is, plant based-) phosphorus, so an all plant diet virtually guarantees phosphorus deficiency related problems. Chickens need more methionine than you can get in a plant based diet, because plants are poor source of that key amino acid. Same with B12. That means those who rely on free ranging to meet the majority of their birds daily intake are hoping and praying for adequate amounts of insect proteins - and the right insect proteins - to make up for what plants lack. Last century, some of those needs would be met ny offering meat scraps (its a term of art, not quite what you think it is), or offering milk (or whey) for them to drink. But of course, most of us don't have milk cows and produce out own cheese, leaving the whey as a waste product...
Its the difference between surviving and thriving.