I can see why it's tempting to think about it as a supply and demand problem. But be realistic about the motivations of developers, too.
And it's not like "affordable housing" requirements work, either, when those are defined relative to average income.