The trick is eddy currents. A magnet moving fast over a good conductor induces circulating currents in the metal, and those ...
Not all EV motors have permanent magnets. Some replace them with powered coils or induction.