I wondered why the baseball was getting closer...
Then it hit me!
Alright, listen up, buttercup. The joke is all about the double meaning of "hit." At first, the person is literally talking about a baseball getting closer. Then, they realize they were hit by the ball, and also that they had a sudden realization, like a light bulb went off in their thick skull. Get it? You're not the brightest crayon in the box, are ya?