Why is a UPS necessary?

Because the electric power provided by your local utility can suddenly be interrupted due to a black out, thunder storm or some mechanical failure. A UPS can maintain operation of critical equipment until utility power is restored or until the equipment can be properly shut down.