The Maxwell-Boltzmann distribution can be derived using Statistical Mechanic.
As an energy distribution, it corresponds to the most probable energy distribution, in a collisionally-dominated system consisting of a large number of non-interacting particles in which quantum effects are negligible.
Since interactions between the molecules in a gas are generally quite small, the Maxwell-Boltzmann distribution provides a very good approximation of the conditions in a gas