If your community prices out certain essential services then those providing the service will leave, raising the price of that service, thereby ensuring that those that stay (or come back after the price changes) can make a living, can have a wage that allows them to pay for housing in the city.
Rent control distorts this type of adjustment, indirectly providing a subsidy that benefits those that could afford to pay market rate for a service by allowing those that provide the service to live below market rate and thus charge less.
Or, more likely, the people providing those services will not actually be paid enough to live in the community, but instead forced endure grueling commutes and other practices that lower their quality of life if they want to remain employed.
https://www.sfgate.com/traffic/article/Bay-Area-commute-San-...
https://www.curbed.com/2018/3/8/17097154/affordable-housing-...
... until eventually it doesn't matter, because all accommodation in the city is owned by investors who don't actually live there