If a box of particles has a certain probability distribution, and that probability distribution has a certain equilibrium, or most probable state, then any constraint to that probability distribution can be seen as increasing energy, or storing potential energy.
Mutual constraint as internal energy
If a box of particles has a certain probability distribution, and that probability distribution has a certain equilibrium, or most probable state, then any constraint to that probability distribution can be seen as increasing energy, or storing potential energy.