Because the regulations, set by those with vested interest in real estate, make it difficult to build more housing. Otherwise anyone with any sense would undercut the existing housing stock and turn a 100k investment in concrete and timber into a million dollar home in Boulder, CO.
Not exactly rocket science - if there's money to be made and people aren't making it then something is stopping them.