Even if land on Earth were infinite, there would still be differences in value based on location. Already there is desert land which can be used for free but urban land is far more valuable due to its proximity to desirable features.
Economic rent like this pops up even in human-made domains of potentially infinite expanse, such as the internet. There is no limit to the number of domain names which may exist yet some are far more valuable than those which can be claimed for low-to-no cost. Even social media platforms are valued to include the economic rent of their own user communities. For example, even if there came along a social media platform which was better than Facebook in every way, users would still value Facebook more because it has more community and community-generated activity and content.