Here's why:
* Magnetic materials are typically metals. Metals are good conductors of electricity.
* Electrons are responsible for both magnetism and electricity. The movement of electrons creates both magnetic fields and electric currents.
While a magnet might not be a perfect conductor like copper, it will still conduct electricity to some degree.