If I can pick your brain, there’s a related concept — entropy production. How does that relate with these ideas?
To produce entropy you have to grow the number of possible microstates that are consistent with available knowledge of the macrostate.
Usually you accomplish that by converting stored energy into heat somehow. A charged capacitor has low entropy compared for the energy it holds; discharge it through a resistor, and you produce a bunch of entropy because that energy can now be distributed in a lot more ways among a lot more degrees of freedom, and nobody can possibly keep track of them.