There's loads of other inefficiencies as well. Moving is a huge hurdle. It's difficult to find housing that meets dozens of conditions, and even then you don't respond to supply + demand imagined equilibrium, you pay more or pay less to live near friends or family. It's something you only do a handful of times in your whole life. Trying to use the same analysis as for buying a can of beans is absurd. You might need to take econ 201 before you understand why econ 101 is wrong about housing.