Buildings are a great way to spend money for XP and to let players add to the world. And buildings require servants and guards, and these require wages. And when you take mercenaries along on an adventure, then that also costs money.