In a lot of novels and settings, the wizards (or priest kings, or whatever) have spells and rituals that actually help the infrastructure-- maybe it keeps the rain from falling on the city, ro improves the yield of the crops, or helps create a working sewage system for the high mage doesn't have...