- Why are the electromagnetic modes considered "degrees of freedom" if their existence is conditioned to the motion of the electrons?
You assume that EM waves are determined by the motion of the electrons and have no freedom of their own. Although that is a reasonable picture of things (for example, if fields are assumed purely retarded, which is very natural), it is not necessary.
The common derivations of thermal radiation spectrum do not assume that.
On the contrary, they assume that EM field is a thing that can exist in vacuum independently of charged particles.
This is possible because the Maxwell equations are only conditions that fields have to satisfy. They alone do not determine the fields. In order to determine the fields, some additional boundary conditions need to be assumed.
The common derivations of thermal radiation spectrum are based on the equations for vacuum
$$
\nabla \cdot \mathbf E = 0
$$
$$
\nabla \cdot \mathbf B = 0
$$
$$
\nabla \times \mathbf E = -\frac{1}{c}\frac{\partial \mathbf B}{\partial t}
$$
$$
\nabla \times \mathbf B = \frac{1}{c}\frac{\partial \mathbf E}{\partial t}
$$
and boundary conditions appropriate for closed ideal metal shell.
This system then admits infinite number of solutions $\mathbf E_H, \mathbf B_H$ . Every solution can be written as discrete sum of standing waves - "modes" and these coefficients are considered as coordinates determining the configuration of the field, hence the term "degrees of freedom".
The motion of the charged matter does not enter the derivation explicitly.
So the answer to 1) is "in the derivation of thermal EM spectrum, the existence of EM waves is not considered to be conditioned by the motion of the charged matter".
Now I agree with you that this approach is far from satisfactory. The boundary condition of ideal metallic shell is unrealistic for high frequencies. In practice, such boundary condition is an easy but only an approximately correct way to account for the motion of electrons in the metal.
- Does an alternative (non cavity + modes) approach exist? I was thinking fluctuations of charge density on the surface of a solid metal sphere due to temperature.
The closest thing I know is later Planck's derivation, where he assumes the EM field is emitted by the matter oscillators in steps $\hbar \omega$. You can read about it in his great book
M. Planck, The theory of heat radiation, P. BLAKISTON'S SON & Co. 1914
https://archive.org/details/theheatradiation00planrich
There are other kinds of derivations, for example Timothy Boyer's derivations based on the zero-point radiation:
https://journals.aps.org/pr/abstract/10.1103/PhysRev.182.1374
You can find other related papers by Timothy Boyer on arxiv.