Why are pants considered not modest?

So I've been told time and time again that wearing pants isn't very modest, they suggest that a skirt of at least knee length is modest.
What do you think are pants modest or is those who told me this telling the truth?
How is pants not modest if they are right?
Why are pants considered not modest?
Post Opinion