hi! There's always room for more on this, but meanwhile you may be interested in a few previous posts on this question...
When and why did it become commonplace among humans for men to wear pants and women to wear dresses or skirts? - /u/cecikierk gives a quick intro to trousers in Europe, why men wore them, and why not women
Why do women wear dresses and men wear pants instead of the other way around? - /u/colevintage and /u/catalot go further into prohibitions against women wearing trousers
How did it come about that men wear pants and women wear skirts? - a rambling thread on all things trousers and women
All of these posts have been archived by now, so if you have follow-up questions for any of the users, ask them here & mention their username to notify them