Let's take a look at the word hit. In the cartoon we can see two different meanings:
Hit - (verb) to strike something.
"I hit the spider with my shoe."
Hit (on) something - (phrasal verb) to realise something or to think of an idea unexpectedly.
"I'd been thinking of how to solve the problem all night and then answer suddenly hit me."
"When I first hit on the idea, everyone told me it wouldn't work."