There also used to be an expectation that if someone who was traveling, of whatever social status, knocked on your door, and needed something, you helped them to the extent you could, and knew that if you eve had to travel somewhere, people would do the same for you. This was true whatever the social status of you or the traveler, which the exception that if you were extremely wealthy or well-placed, and a peasant came by, he’d knock on the servants’ door. Servants’ lives were hard, but they were at least usually well-fed and warm, and could share. this was the way of the world through Europe and the European colonies through about 1820.
The railway system made traveling a whole different game. Customs changed, and cheap hotels outside big cities sprung up around railway hubs.
Still, I remember even when I was a little kid and I had relatives who lived in places where houses were spaced widely along a road, someone might stop by and ask to use the phone, and they’d be let in and allowed to do so as long as it wasn’t long distance-- or if it was, they’d call the operator and ask the charge, and hand over cash, and if the person needed to use the phone because they had a car break down, say, they’d be offered food, and allowed to sit in a warm safe home until help arrived.