Infinite ergodic theory meets Boltzmann statistics