Statistical mechanics and thermodynamic systems can indeed be analyzed and formulated using variational and Lagrangian methods.
The retrieved papers include explicit discussions of variational principles, Legendre transforms, and Lagrangian/path formulations applied to statistical mechanics, supporting the claim.