The market can provide affordable housing, you've just made it illegal for the market to do that.
It's always "housing is a human right" while ignoring the laws that making building housing impossible.