It’s called “inclusionary zoning.” Instead of banning uses in a district, it forces you to have them. So much affordable housing in the district, houses need to house at least so many people, etc.
The UK is pushing a “Bedroom Tax”, to push older people out of homes they own to free it up to families.