Both horses and people needed places to stay overnight when travelling.
Inns and the livery stables would offer somewhere for people and horses to eat and sleep when they would come through town.
Livery Stable (Barn)
People who did not own a horse could come to the livery stable to rent one. Buggies, wagons, and sleighs could also be rented. When someone came to town and planned to stay for a while, the livery stable was the place to leave the horses. Horses who stayed there would have food, water, and shelter provided by those who worked there.