I must confess that my mother told that joke when I was very young, and it took me about ten years before I got it.
Same with "when is a door not a door?" "When it is ajar."