The market dictates. Many groups and builders are involved in housing projects for the elderly, disabled etc..
Except when the market is distorted by government intervention:
... spending bill, includes financial incentives for state and local entities to change zoning laws ...