Here's why:
* Adjectives describe nouns. In this sentence, "fun" describes the pronoun "it."
* "Fun" modifies the noun "it" by telling us what kind of "it" it was. We understand that "it" was enjoyable or pleasurable.
Let me know if you'd like to explore other examples of adjectives!