From the energy that men would have had to put into the pottery and carvings of artifacts from about 20,000 years ago to the bronze age.
I thing the ancient Hebrews put that ruling over women to return their women to a subservient position to go against the matriarchal and egalitarian notions that Egypt exemplified.
It may have been at a time when the Jews were trying to kill off Asherah. God's wife.
Regards
DL
Do you read history ? In case you have forgotten the Assyrian have taken the Israelite in captivity , I doubt the Hebrew converted the Assyrian to be male domineering