English Joke - A Wooden Leg

My friend said he knew a man with a wooden leg named Smith.
So I asked him, "What was the name of his other leg?"

Why is this funny?

It's funny because of the confusion between these two phrases;
"a man with a wooden leg" and "a wooden leg named Smith."

Listen to the joke again.
(See above.)