The riddle
Why Did the Dinosaur Cross the Road?
AnswerChickens had not evolved yet
Answering the old chicken joke
The usual road-crossing joke has a chicken in it, so the dinosaur version gives a reason the chicken could not be there. The riddle says there were no chickens yet. The answer borrows its humor from the famous joke and also from the idea that a dinosaur lived long before any farm animal.
Why it works
The joke gets its reason from time, not from the road.
A chicken is the animal everyone assumes crossed it, and the dinosaur answer removes the chicken from the scene because it did not exist yet. Told right after the usual question, it shows how fixed the old joke is, since the chicken has been the answer for so long that its absence needs explaining.