It'd hard to say for sure, I want to preface I'm only a graduate electrical engineer I have a decent understanding of electricity but I still have a lot to learn!
The magnet's field could be causing some interference with the electricity flowing through the cable and that would be one source...