The point of UBI is that it isn't government funding, the government have no control how it is spent, people get to decide themselves how to spend it. People wont choose to spend it all on housing just like they currently don't choose to spend all of their disposable income on housing.