Well, they don’t change the cost of equipping and feeding and paying soldiers, but cities are populations of non-farmers so they don’t need to go back to the harvest, so there’s that.
The main thing is: the better the economy, the more professional soldiers you can afford to hire and the less you need levies.