means that
the considerable expense and uncertainty of building a house may leave others to enjoy the property at less cost or risk than its builder.
For example, it is very expensive to build a house, so one must be a fool to do so; also, one who build a house, might be in debt and cannot afford to live… This is a situation where “Fools build houses and wise men live in them” applies.