Question: what is the difference between mains electricity and batteries?
Answer: Essentially both are power supplies. Difference is A battery power supply is finite; It tends to run out of power. A power supply, unlike a battery, is constant power and can usually be set over a wide scale of voltage and/or current. This unit gets its power usually from the Grid or Mains.