It's hardly a free market - it would certainly be more profitable to build a midrise with 20+ less expensive units rather than one expensive unit on a given lot - but zoning restrictions mean it can't happen.
Generally any neighborhood meeting will also have people providing input that more units will cause more traffic so could the developer please create fewer, more expensive units?
"More profitable" would include the cost of getting the zoning changed.