I am a student learning English.
I learned about how to/what to/ where to/ when to, etc.
For example, I don't know how to go there / when to go there / where to go / what to do.
According the book, "why to ~" is a wrong expression.
However, I can see a lot of expression like "why to be a...