The origin of this Phrase I would like to know

True. I have found many other phrases that do not make sense, such as:
"Great minds think alike."
Wouldn't one think that great minds think differently?
Great minds think for themselves, and come up with individual and creative ideas.