Here's why:
* Interjections are words or phrases that express strong emotion or sudden feelings. They are often followed by an exclamation point.
* "Hello" expresses greeting, while "goodbye" expresses farewell.
While these words can sometimes function as other parts of speech (like a noun in a sentence like "It was a quick hello"), their primary function is as interjections.