This question was already asked here:
Degeneracy in Maxwell Boltzmann distribution
But the answer was not very satisfying so I'm asking again.
I can somewhat understand the derivation of Maxwell-Boltzmann statistics from Wikipedia:
https://en.wikipedia.org/wiki/Maxwell–Boltzmann_statistics
The degeneracy is what bothers me. I understand that degeneracy means the number of ways we can have the same energy with different states. Let's say we have two particles with one having speed so that its kinetic energy is $A$ and other having speed such that its energy is $B$. This is a state. Now the situation could be reversed; with the first particle now having energy $B$ and the second particle having energy $A$. This state has a degeneracy of 2, because there are two ways the system of particles can have the same total energy $A + B$. Do I understand the concept correctly?
Now, in the Wikipedia article it is just stated in the end that by "Thomas-Fermi approximation", the degeneracy is the square root of $\epsilon$, the energy of a particular state. I'm having trouble finding much about this step, the Wikipedia article on it seems to talk about Quantum Mechanics. Then in another article on Maxwell-Boltzmann distribution (https://en.wikipedia.org/wiki/Maxwell–Boltzmann_distribution), the end result is stated as
$${\displaystyle {\frac {N_{i}}{N}}={\frac {\exp(-E_{i}/kT)}{\sum _{j}\exp(-E_{j}/kT)}}}$$
which seems like the same thing except the degeneracy seems to be taken as $1$. There is also another page where the degeneracy is also taken as $1$: https://universe-review.ca/R15-30-stat.htm.
So my question is: What really is the degeneracy in Maxwell-Boltzmann statistics? If it is one, why would there be only one way the state could have some particular energy? In other distributions I can imagine how QM puts limitations of how many particles can occupy a state, but why are there such limitations in classical physics?