Potential difference between any two points is defined as the amount of work done in moving a unit charge from one point to another
\(dv=frac{dw}{dq}\)Point 1:
If a positive charge is moved from a point at a higher potential to point at a lower potential energy is liberated.
Point 2:
In actual practice electric charge moves from lower potential to higher potential here there is a loss of energy by electrons moving from lower potential to higher potential the loss of energy appears as Heat.