I think it's because you add people to that city, and the amount of total unit upkeep for all your armies is divided amongst your cities based on size. So, the larger your city, the more it pays its share of upkeep costs.