I'm not sure it is such a great bargain for the species. Farming, certainly commercial farming, has not been kind to animals. I think any animal would prefer to take its chances in the wild.
"Mother Nature" does not care about the suffering of individuals, just the survival of the entire species. Actually, it is not even the species, but any species that will fill the ecological niche. Species rise and fall, but the niche must be occupied.
Whether the bargain was a good one or not is judged by different standards when considered by the species or by the individual. You may look from the outside and believe that a chicken taking it's chances in the wild would be better off, however, the individual bird's chances of survival to 6 weeks of age are better in the factory farm than on it's own. The reason chickens hatch so many chicks is in the hope that one or two out of the clutch of 8 to 12 will make it to breeding age. Most are expected to be eaten by predators or fall to disease or accident.
My laying hens have the opportunity to "fly the coop," but every night they are in the same place on the roost. They do not prefer to take their chances in the wild.