In older style North American barns, the upper area was used to store hay and sometimes grain.
In New England it is common to find barns attached to the main farmhouse (connected farm architecture), allowing for chores to be done while sheltering the worker from the weather.