Here's why:
* It modifies a verb: It tells us *how* something is done. For example, "He voluntarily offered to help."
* It can also modify an adjective or another adverb: For example, "She was voluntarily and enthusiastically involved."
Let me know if you have any other words you'd like to know the part of speech for!