why (Noun) — The cause or intention underlying an action or situation, especially in the phrase 'the whys and wherefores'.
why (Adverb) — Question word; what is the reason. ex. "why are you here?"