Because not everyone can come up with 50k to put 5% down on something that wont start printing you money for 10 years. 4/10 americans can’t come up with $400.
But if you can afford it there is no better investment. Practically no home in LA county lost money over an arbitrary 10 year period. The problem is the source of these profits is from squeezing middle and working class renters absolutely dry.