adverb
for what reason or purpose
used to offer a suggestion or to say that a course of action is not necessary
used to express irritation or annoyance
conjunction
the cause, reason, or purpose for which
for which
noun
the whys and (the) wherefores
the reasons for something
interjection
somewhat old-fashioned - used at the beginning of a statement especially to express surprise