Still, it will have their child taken at birth, shot, plugged into a milk machine daily, etc.
Farming if left to the natural economic forces in the market will lead to factory farming, unless regulated which is usually not the case. It's on the rise in Europe for example.
It's about supply and demand, and about producing the cheapest product at the highest margin, spending the least amount of money. People at the supermarket will often just choose the cheapest option.
Also, there is the need to feed a lot of people, and with animal products its hard to do that with traditional methods especially given the current levels of meat consumption.