Gold and bitcoins are not problematic as holding on to them does not inhibit value creation.
Around the world there are actually laws regulating physical squatting [1, 2], because it seen as a socially positive outcome (compared to leaving houses/land disused). And there are also often provisions that allow you to prevent squatting [3], but you have to give something back (e.g. dirt-cheap short-term rentals).
[1] https://en.wikipedia.org/wiki/Squatting_in_the_Netherlands, [2] https://www.latimes.com/business/la-fi-associations-squatter..., [3] https://nl.wikipedia.org/wiki/Antikraak
EDIT:
Such property can be seen to sit unused by anyone, but it's lack of availability (when it could otherwise be used) contributes to the scarcity of property in that district, and thus inflation of property prices in that area (be it naturally occurring or otherwise)
I don't have to care which specific instance of them I have (mostly, land is where it gets funny but that's more secondary effects like transport hubs, taxation, regulations etc at which point it's not "land" it's a location I'm after).
A domain name? It's a unique registration on a global index. It's value is in that uniqueness.