In those days it was women who raised the children, there were no “stay-at-home-dads.” Women and children were protected and cared for because it was important for society to continue through the descendents of the men. Without descendant’s men felt that they were not abiding by the rules, "Be fruitful and multiply." What is fair to some is not fair to others. Judgment needs to refer to the period when things happened and the prevailing thoughts of the time. History is rough on most and generally nothing is "fair" or "just" to everyone. So, yes, it was fair and just for that time.