Here's why:
* It modifies a verb: It describes how an action is performed. For example: "He ate his breakfast hastily." (It tells us how he ate)
* It can also modify an adjective or another adverb: "He was hastily dressed for the meeting." (It tells us how he was dressed)
Let me know if you have any other words you'd like to analyze!