There are some differences in the regulation of DNS assignments and real estate that makes this comparison not as direct as it may have been intended. Namely who can own the assets and if they are transferable. In real estate both of these lean much more on the open side, creating market forces which allows capitalism to work. Even if you yourself don't own property in e.g. NYC there is more than one investment company looking to buy and sell in NYC. In DNS these assignments enforce a system of renting and registry lock in. There is little room for capitalism to do its thing when avenues for competition are removed in this way.
Even seeming outs such as "invest in a gTLD" don't provide the opportunity. Aside from being the virtual equivalent of "why don't you just go build your hair salon 50 miles out of town where nobody owns anything yet for 1,000x the cost of a building in town?" gTLDs require being a well established organization, among other eligibility requirements, which creates a bit of a chicken and egg problem.
Both do have a 3rd component of "group good overhead" but the IANA fees of ~18 cents don't seem to be the problem so there's no sense in comparing/contrasting these differences.