What is the meaning of [Clothes do not make the man.]

A person’s character can’t be judged by his/ her clothing and outward appearance.

Example: X: I can’t believe he has been charged for insider trading. He always seemed so professional and impeccable. Y: Well, clothes don’t make the man.