That's what treasure, trade and purchase options are for. Worldbuilding is important, and the DM has to do the work to make a consistent, logical, and (hopefully) fun setting for the players to explore through their PCs. Honestly, that should be front and center in the core books IMO.