how did men become masters

2 answers

They're not.

Please clarify your question.
If you are asking how did men come to dominate women in most societies, it probably started in ancient times because of sheer muscle power, but that is just a guess.

Is that what you were asking?