No reason those rules can't apply to a randomly generated dungeon.
Castle, tower, stronghold, etc...a dungeon by any other name smells just as dank.
Now, if you want a real gp for xp arguement...should players get that xp for gp BEFORE or AFTER taxes, tithing, tributes, etc? Do they lose xp...