How does this dynamo work?
The coil does not need to be inside the physical magnet, but it does (and is) inside the magnetic field produced by the magnet.

The magnet has multiple N and S poles around its perimeter, and the 'metallic teeth' are pole pieces that transfer the magnetic field to be around the coil.
Rotating the magnet rotates the field.