Here's why:
* Adjective: It describes a noun, indicating a higher level of sound. For example: "The music was louder than before."
* Adverb: It modifies a verb, adjective, or another adverb, also indicating a higher level of sound. For example: "She spoke louder so everyone could hear her."
The specific part of speech depends on how it's used in a sentence.