In Thermodynamics, it is said that heat transfer takes place from higher temperature to lower temperature. Things having higher temperature have higher potential energy because of more vibratory motion and other kind of motion of atoms and things at lower temperature have lower potential energy.
But in electrodynamics, the electrons move from negative terminal of the battery which is at lower potential to the positive terminal of the battery which is at higher potential.
One fundamental law of physics is that things go from higher potential region to lower potential region. Why does they do so? Why does heat flow from higher temperature to lower temperature and not vice versa?
Second question is why this thing is not followed in case of electrons? Am iI missing something or the concept of potential is also relative, like for electron, negative terminal is at higher potential and positive is at lower.