Hello, I'm a bit late. The 20Khz you mention is the frequency of the sound, 20Khz being a very very high pitched sound.
The headphones say 40Khz, and that means that they can reproduce a sound recorded at a frequency of 40Khz, so a sound with more than twice as much sound material as a 20Khz recording.