The Laws of Thermodynamics were developed in the 1800s while engineering steam engines. Thermodynamics (aka Heat Dynamics) is the study of transferring heat into useful work.
Entropy is q/T or heat divided by Temperature. So the 2nd Law of Thermodynamics relates to entropy and applies to heat engines only.
Is all of energy heat-related? No, of course not. Translational positioning is one example of non-heat related energy.
Unfortunately, Thermodynamics seems to be studied and taught as applicable to all sources of energy.