So it's not exactly that they "still earn enough money" to become obese, it's that somehow the food supply has been inverted so everyone can afford calories but not so many can afford healthy food.
Besides that, as a counter argument to your hypothesis, wouldn't inner city neighborhoods be old and walkable? In that case, your argument that they are more healthy because they are inhabited by richer people doesn't seem to fly.