What is the meaning of [better one house spoiled than two]

It is a good thing for two bad, foolish, or otherwise undesirable people to become husband and wife and thus avoid causing trouble in two separate marriages.