I'm not sure how easily one could leave a small town in, say, feudal Europe. Most serfs lacked travel rights, and while one could escape from their lord's land and move to a city (depending on the country), the cost was prohibitively high[0].
[0] https://en.wikipedia.org/wiki/Serfdom#Villeins