Here's why:
* Adverbs modify verbs, adjectives, or other adverbs.
* "Harmlessly" describes how an action is performed.
For example:
* The child played harmlessly with the toys. ("Harmlessly" modifies the verb "played".)
* It was a harmlessly funny joke. ("Harmlessly" modifies the adjective "funny".)