Here's why:
* Adverbs modify verbs, adjectives, or other adverbs. They describe how, when, where, or to what extent something happens.
* "Afterward" indicates when something happens, specifically after something else has occurred.
Example:
"We went to the park, and afterward we had ice cream."
("Afterward" modifies the verb "had").