The Two Kinds of Free Energy and the Bayesian Revolution