Here's why:
* Imperative sentences give commands or requests. They usually start with a verb and are directed at the listener. For example, "Close the door."
* "How lucky you are" is an exclamatory sentence. It expresses strong emotion, in this case, surprise or admiration.
Let me know if you'd like more examples of different sentence types!