The batteries are used for backing up the memory for time and alarm settings in case of a power failure. The mains supply supports other features of the device.
Note: Batteries are not supplied with the product. Please consult the user manual for battery type.