Here's why:
* It modifies a verb: It tells us *how* an action is done. For example, "He gladly accepted the invitation."
* It can also modify an adjective or another adverb: For example, "He was gladly willing to help." or "She sang gladly and beautifully."
Let me know if you have any more questions about parts of speech!