I have bought "sex and punishment" by Eric Berkowitz a few months ago, and I remember a particular passage early in the book that was extremely interesting that I'm going to try to summarize as best as I can.
It basically says that It was not until the homo sapiens age that the link between pregnancy and sexual intercourse was figured out, humans probably didn't know how children were made before that and believed that babies magically appeared in the womb as women were constantly pregnant or lactating. And menstruation was seen as a magical and overwhelming event, as the only people who could bleed were hurt or were dying, and were in obvious distress. However, women could lose blood regularly without much discomfort. That must have been a really unexplainable event at some point.
However, when pregnancy through sexual intercourse was figured out, the magic completely disappeared. Once they knew how women could get pregnant through sex, men started to impose rules. It's believed the first restrictions appeared in the paleolithic period, in which it was prohibited to have intercourse as menstrual blood was seen as dirty and unclean. That escalated into, for example, Hebrew religion, in which a woman on her period would make everything she touched dirty, and needed to clean constantly.
Hope it can be interesting and wonder if anyone has more to offer.