This is such a misconception. Air is similarly valueless ..
Real estate produces something very valuable, and if you can't understand that try living homeless for a few months .. its the only way without a house you will get to be near amenities ¯\_(ツ)_/¯
In financial terms it produces rent or saving of paying rent.