Towns are ubiquitous in Dungeons and Dragons. They are the various locations that make the world of the campaign feel real and alive. Towns and cities are necessary points of interest in any hero's journey. Towns are often, and essentially, the user-interface points for the players to interact with story, tone, narrative, and the world.
Source:https://www.cbr.com/dnd-towncraft-homebrew-tips/