why is kwh a unit of energy?
A Watt is defined as one Joule per second. Therefore, kWh is actually a unit of power, as it measures how many thousands of Watts per hour you have used. So, in a way you are right, but it's a unit of energy transferred in a given time frame, which we call power.