vs
QUICK ANSWER
"Why" is a form of "why", an adverb which is often translated as "por qué". "Thank you" is a phrase which is often translated as "gracias". Learn more about the difference between "thank you" and "why" below.
why(
way
)An adverb is a word that describes a verb, an adjective, or other adverbs (e.g., to run quickly, very tired).
A conjunction is a word that connects words, phrases, clauses, or sentences (e.g., The cat and the dog slept.).
A noun is a word referring to a person, animal, place, thing, feeling, or idea (e.g., man, dog, house).
An interjection is a short utterance that expresses emotion, hesitation, or protest (e.g., Wow!).