This is going to keep happening as long as governments keep outsourcing new "affordable" housing projects to developers.
It makes far more sense to me to administer the projects publicly and source materials and trades directly instead of through the obnoxious matryoshka middleman system that is public-private partnership.
Also we badly need to fucking build non-market housing.
I live in a city where property values have increased by an order of magnitude over about 40 years.
Yes, we have a lot of speculators and wealthy landowners who need to be taxed out of existence.
But we also have a problem where seniors on fixed incomes who have owned their homes for 30 - 50 years cannot afford their property taxes because the land their homes are sitting on has exploded in value.