Land close enough to cities to be reasonable to truck garbage to is less plentiful though and you have to factor in the costs of properly containing and processing that garbage.
At the end of the day it has to go somewhere, and there's no room for it in the five boroughs, so they pay what they need to pay. And it's still cheaper than sending it overseas (otherwise they would).
NYC is a bit of a special case for a lot of things due to it's size/density and location. Most places don't ship their waste that far from it's origin because it's expensive.