Well aquagremlin is indeed on the right track. Heinrich Hertz and Maxwell established that a varying current in a conductor (antenna) radiates EM waves. A varying current, is just another way of saying "accelerating electric charge"
After Rutherford established that the atom was indeed a compact nucleus, surrounded by other charges (electrons), Niels Bohr made a completely arbitrary assumption, that the electrons orbited the nucleus, and that only when they did so in orbits that set up standing wave patterns at particular frequencies, did the electrons not radiate due to their constant acceleration. Sommerfeld added to the mess, by introducing elliptic orbits as well. So this proposal, simply abandoned the classical result of Maxwell and Hertz.
Quantum mechanics saved the day by saying that the "orbits" of Bohr/Sommerfeld, are really "orbitals" , just regional maps of the probability of finding the electron in that location. So the orbital motion disappears, replaced by a probability map.
So Maxwell-Hertz was completely restored, and is to this day. The only three fundamental physical constant, which have exact numerical values, with zero error, are (c) the velocity of propagation of Hertzian EM waves, and epsilon naught, the permittivity of free space, plus mu naught, the permeability of free space. Those two values are used in the Hertz derivation of the velocity of EM waves as c = 1/ sqrt(mu0 x epsilon0), and also in deriving the characteristic impedance of free space = 120.pi Ohms (roughly = 377 Ohms = sqrt (mu0 / epsilon0).
Also, according to quantum mechanics, one of the allowed orbitals includes the nucleus itself, so the electron could be in the same location as the nucleus.
So accelerated charges ALWAYS RADIATE, no exceptions. Neutral atoms that tend to have zero dipole moments, become distorted during (thermal) collisions, since the nucleus and electron cloud have equal charges, but the nucleus has at least 1875 times the electron mass, and usually 3750 times, for neutrons = protons.
So all the momentum of the atom is in the nucleus, so the nuclei continue on, after the electron clouds in collisions have stopped. So during the collision encounter, the distorted atoms, have a non-zero electric dipole moment, and therefore do radiate as a consequence of Temperature. That is the source of the thermal black body like radiation.
Since the collision velocities vary widely, and also the trajectories (of the nuclei), a broad range of radiation frequencies will be generated. The collision encounter times are like all day, in the time scales of em radiation events.