Here's why:
* It names a quality or state: "Greatness" refers to the state of being great, excellent, or important.
* It can be the subject of a sentence: "Greatness is often misunderstood."
* It can be the object of a verb: "He admired her greatness."
Let me know if you have any other words you'd like to know the part of speech for!