A lot of replies concern some historical version of a pub, which is interesting, but I think it's clear that the origin of the trope "you meet a mysterious stranger at an inn" seen in RPGs today is a combination the moment in Lord of the Rings (which itself has historically-informed precedents...