Why did Timmy drop his ice cream cone?
He got hit by a train.
Why did Timmy drop his ice cream cone?
He got hit by a train.
The joke uses misdirection. You expect a funny or silly reason for Timmy dropping his ice cream, but instead, it's a dark and unexpected explanation that he was hit by a train. This contrast makes it a dark joke.