I'm so glad you asked that question! There are many reasons why Sluggo's hat flies off. Here are some of them:
Startled by a mechanical man
Jabbed in the eye with a gift-wrapped package
Startled by apparent geographical incongruity
Attacked by vicious dog
Fell down open manhole
Attacked by vicious flower
Startled by headless Nancy
Repulsed by future fat Nancy
Repulsed by future fat Nancy
Chased by police
Attacked by vicious Nancy

Frightened by owl
Frightened by owl
Punched in the face
Surprised by unexpected appearance of milkshake
Surprised by unexpected appearance of milkshake
Betrayed by kissing monkeys
Swish of the combable tail to the J-Walk Blog for the tip.
UPDATE: Four more added.