I know you're shitposting, but the invention of pants didn't come until much, much later.
The middle ages had men wearing underwear though and to give a visionary example, think modern day boxer shorts.
If you were high class, the tunic would be longer, like a dress, but what they wore underneath was specific to the male clothing of the time. It was just tunic and the undershirt, their underwear, stockings which tied to strings on your underwear, and shoes.
Women wore an under dress, an over dress, and stockings with garters to hold them in place.
So yeah, while pants weren't worn by men, the underclothes were vastly different and it was more apparent in the lower status classes.
I'm only sperging about this because a lot of people like to think we "downgraded" when pants became a thing for guys. It was just inevitable as an invention.