If you want to go into the very basic principle, it is simply the conversion of electrical energy into heat through the use of heating element/s to raise the temperature of water to a certain degree.

Obviously this is not much different from a common immersion rod which you can dip into your bucket, plug into the power socket and get going. 
 water get warmed because of safe and fast drums