This is a play on words. A fire "going out" when unattended means the fire stops burning if you stop giving it kindling. A husband "going out" when unattended means the husband will "go out" or leave if he's not receiving attention.
Husbands are like fires . They go out when unattended .