I would argue the rule is for protecting children from abuse and women from being isolated and subservient.
The culture decided farming cows was fine but dogs is not, that was my example logic.
I think it does have a huge societal benefit to teach these marginalised people that they are not less than, are not required to hide and be silent and that they can take part in this society. In a few generations it might be appropriate repeal the law as it becomes less an issue for the women in that culture, as they become more equal to their partners and families.