Why, how, and what can all be categorized as question words.
Why is used to ask for the reason or cause behind something, ex: why are you sad today?
How is used to ask about the manner or method of doing something. ex:
How do you go to school?
What is used to ask about the identity, nature, or content of something. e.g., what's your name?