Here's why:
* "How to" is a phrase, not a compound word. It acts as a unit, similar to "in order to" or "because of".
* Hyphens are used to connect words that are closely related. For example, "well-known" or "up-to-date."
Example:
"How to bake a cake" is the correct way to write it.