The phrase refers to the fact that the very act of explaining the problem to someone reveals the solution without them having to say anything. So you could have explained the problem to anyone or anything, including a rubber duck.
Wikipedia has a very short article on this which explains the origin of the phrase:
The name is a reference to a story in the book The Pragmatic Programmer in which a programmer would carry around a rubber duck and debug his code by forcing himself to explain it, line-by-line, to the duck.
Note that the article you're reading goes on to explain this technique as well:
If your program still has a bug, obtain a rubber duck. Or if a rubber duck is unavailable, get another computer science undergraduate, it’s much the same. Explain to the duck using simple words why each line of each method in your program is obviously correct. At some point you will be unable to do so, either because you don’t understand the method you wrote, or because it’s wrong, or both. Concentrate your efforts on that method; that’s probably where the bug is. Seriously, rubber duck debugging works.[1. And as legendary programmer Raymond Chen points out in a comment to this entry, if you can’t explain to the duck why you’re executing a particular statement, maybe that’s because you started programming before you had a plan of attack.]
(Emphasis mine)