Here's why:
* It modifies a verb: It describes how an action is done (e.g., "I accidentally deleted the file").
* It answers the question "how?": It tells us the manner in which the action occurred.
Let me know if you'd like to explore other parts of speech!