not all cows are unhappy...
I think your information is a little generalized. True, there are many cows that live in the conditions described, and a lot of the milk and meat from these farms is not fit for human consumption...
But there is another side of the story.
There is a growing trend of managed-grazing. Dairy cows rotated around paddocks of pasture (what they were intended to eat, and what makes amazingly healthy meat and milk). On good pasture, they may make 30-50lbs instead of 100lbs of milk, but it is plenty to feed 1 calf up to 4 months old AND to "harvest" the rest at a profit. Their manure drops on the pasture and becomes fertilizer that is essential to replenishing the soil with nutrients and organic matter.
In ancient times, the cow was one of the most sacred animals. When treated properly, and when her products aren't pasteurized, homogenized, or adulterated in any other way, I think it is easy to see how valuable dairy and beef farming are.
Read "All Flesh is Grass", or "the Milk Cure"