I will say that in my area the municipality has had to set development rules for various price ranges for houses ... otherwise all we would seem to get are developers who want to sell luxury houses. Obviously there is some demand for those luxury houses, but the incentives to build "starter houses" or even affordable apartments just did not seem to be there unless encouraged / required by government.
Once required we had a lot of WAY more affordable and seemingly appropriate housing being built. Still subject market forces, but at least there were choices now.
It seems to me the margins on luxury / larger homes makes building luxury homes far more desirable than more affordable homes, even with demand for more affordable options.