Here's why:
* Describes a noun: It tells us more about the noun it modifies. For example, "The longer road" or "a longer wait."
* Compares: "Longer" implies a comparison, suggesting something is greater in length than something else.
Let me know if you have any other words you'd like to know the part of speech for!