Chickens provided food, they created fertilizer, they kept the grass and soil healthy. Then government stepped in, banned local animal husbandry, they also created the egg marketing boards in conjunction with industry. Same as beef, pork and dairy markets.
Local municipalities put in place regulations to limit private property owner's ability to produce their own food, further creating dependency on store chains. Industry is NEEDED to mass produce food, there is no doubt about that.