Here's why:
* It modifies a verb: It describes *how* an action is performed. For example, "She looked longingly at the sunset."
* It ends in "-ly": Many adverbs end in "-ly", although not all do.
Let me know if you have other words you'd like to analyze!