I think it protects both the wife and kids. If he dies c"v or they divorce, having been married obligates him to the family. He can't just legally walk away. Community property even if the house is only in his name. (which I think is not right, but people do it.)