Housing scarcity is more about the cost of the land than the house itself. You're right that that a house can be built for $50k (not by most modern standards, but it can be done). But if you wanted that $50k house in SF bay area, suddenly it's on a piece of land worth $2 million.