Here's why:
* Adverbs modify verbs, adjectives, or other adverbs. They describe how, when, where, or to what extent something is done.
* Adjectives describe nouns or pronouns.
In the sentence "The room was entirely empty," "entirely" modifies the adjective "empty," describing the extent to which the room was empty.