As a proper noun and
is .
As an adverb why is
for what cause, reason, or purpose.
As a noun why is
reason or
why can be (uk|dialect) a young heifer.
As an interjection why is
an exclamation used to express indignation, mild surprise, or impatience "well, i'll tell you".