They are not the same, the UPS is an electrical device that provides backup power to the system whereas the inverter converts DC into AC. The main function of the UPS is to store the electric supply whereas the inverter converts the stored DC power into AC power.