The barn will serve as a storage for the products collected on your farm. From here you can decide whether to sell them directly, stock them and then improve them in New Waxchester or accumulate them waiting for the weekly tasks. Larger granaries will give you the opportunity to accumulate more products.
Moreover, since they have more available slots, larger barn will allow you to achieve higher weekly tasks.