There are zoning issues that prevent the market from buildings an adequate amount of housing to keep up with demand. You can't just go turn a single family home in Palo Alto into a small apartment complex.
There is not an equivalent quota or limit on the number of employees who can work as waiters.