"Man" vs. "guy"

Why is “wise man” a compliment but “wise guy” an insult?