So if you mandate only affordable housing, then you help a few people, but restrict the overall housing market, which makes rent prices go up for most people.
(To be clear, affordable housing isn’t bad; but restricting the supply of housing by building 100 affordable units instead 80,000 market rate ones is)