Here's why:
* It describes a noun: You can say "an optimistic person" or "an optimistic outlook."
* It answers the question "what kind?": It tells us what kind of person or outlook we're talking about.
Let me know if you have any other words you'd like to know the part of speech for!