Why can't everyone have a house despite abundant land on Earth?

This question tackles a seemingly simple query that, upon deeper inspection, involves complex economic, social, and political factors (land ownership, infrastructure, resources, distribution, cost of building, regulation, etc.). It's a fundamental question many people ask, especially with rising housing costs, and a good explanation could be very insightful and spark widespread discussion.