Here's why:
* It modifies a verb: "He mostly sleeps in."
* It can modify an adjective: "The room is mostly empty."
* It can modify another adverb: "She walks mostly slowly."
Adverbs describe verbs, adjectives, or other adverbs, providing more information about how, when, where, or to what extent something happens.