Are you familiar with how a transformer works?
transformer
The core in this article doesn't have to be iron it could be air. All that is necessary is the magnetic flux is common to both coils.
p.s. I don't have an electric toothbrush so this is a guess at how it works. I lead a simple life.