Planning Minister John Carey says the state government has had to step in after the private market did not deliver on affordable housing.