The principle of maximum entropy states that the probability distribution which best represents the current state of knowledge about a system is the one with largest entropy, in the context of precisely stated prior data. The Second Law of Thermodynamics a spontaneous change results in an increase in the entropy of the universe. In an isolated system, when the system's entropy reaches the maximum, the system stays there because any further change would reduce entropy. That's obviously the equilibrium position.