This is not completely true, as the cost to build high rise condos is extremely high and the land is very expensive. Every place in the USA that has kept housing affordable has done so with sprawl, which California's government doesn't allow.
You can see a detailed study of it here: https://www.buildzoom.com/blog/cities-expansion-slowing