Survival flashlights have a hand crank, that when turned, spins a magnet inside a coil of wire. Why does this make the flashlight work?

Moving a magnet inside a coil of wire induces a voltage in the coil.