That’s not what that expression means though. Wikitionary has it as “To spend money foolishly or indiscriminately; to waste money without regard of the consequences.” Which sounds about right.
How is it foolish to spend money on housing?