Electricity and magnetism both generate electromagnetic fields and exist due to the movement and interaction of electrons oriented and sppining in a particular way. And their relationship are similar to matter and energy, and they can be converted into each other. (not a physicist tho, thats kinda what I know)