"how" and "why" both make sense and are grammatical in that sentence. There is some difference in meaning, but in the context not a huge one. The linkage between the two parts of the first sentence isn't right.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.