An electron wiggling back and forth is a tiny varying electric current, and a varying electric current also has to produce a magnetic field, which has to produce an electric current, and so on. The mere process of wiggling an electron with a charge on it creates a magnetic field that creates an electric field, that creates a magnetic field simultaneously back and forth intertwined, and that’s electromagnetic radiation.