" The use of "the" where it refers to "the poor" is correct because it is indicating all people of a particular type. It would not be proper usage to put the word "the" before greatness. Think of greatness as being eminent.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.