My understanding was that rubber ducking was using a different portion of your brain by speaking the words.
The same discovery often happens when you explain a problem to a coworker and midway through the explanation you say "nvm, I know what I did wrong"