How did patriarchy start? And how did it become systemic after the agricultural revolution?

I'm aware that patriarchy evolved independently in different cultures and societies, but one thing that I keep noticing (and correct me if I'm wrong) is that in most patriarchal societies, it was something about that transition from hunter-gatherers to domestication and agriculture that triggered the spawn of patriarchy. So what was it?