God didn't build barns, he built cattle that were meant to be out in the weather. One really big dairy operator (several thousand cows) who went broke with the whole freestall setup told me, as we were standing next to the barn with the tin flapping in the wind (bank took it, but not the cows!), "No barn was EVER built for cattle. They were all built for PEOPLE, to take care of cattle in."
The cattle are better off outside, than in the barn. But nobody wants to take care of them out in the weather, so they build a barn to make it "easier" to care for them. Years ago, with running water but before electricity, you "NEEDED" a "barn" to keep in the body heat of the cattle so that the water tank wouldn't freeze. (really?... see Silver's post above)... why... because it was "easier" than chopping open water all winter. THAT is what we've all "evolved from" as cattlemen. You have to go back further in history, BEFORE running water... then the animals, unless they were dairy, were kept outside. Dairy though too... built their barns to make it "easier" and "more comfortable, more time efficient, for the man" to milk the cows.... it's hard to milk very many when they're running around in a pasture.
God gave cows legs, let them use them! He also gave them a natural 24/7 milking machine... it's called a calf. He also gave them shelter... it's called a tree. A woodlot is the best "barn" you could ever have. Work WITH the natural system, instead of against it!