In the case of healthcare, it's partly the cost of technology - a generation ago there were no MRIs, drugs were less complex, etc. The quality and outcomes have massively improved in many areas.
Even with housing, you have material costs and labor costs. Everyone talks about density, but if someone isn't working with a UBI, then they can live in the middle of nowhere. Most of the housing issues are really a personal choices and labor location.