A UPS contains a battery that “kicks in” when the electronic device senses loss of power from the mains source. If you are using the computer when the UPS notifies you of the power loss, you have time to save any data you are working on and exit gracefully before the secondary power source (the battery) runs out.