Yeah - the power loss doesn’t work on UPS - its for last minute protection when the mains power dies to the printer. The printer will have no way of knowing if you’re running on mains power or UPS backup.
You would need to enable it in your G-Code as well: Power-loss Recovery | Marlin Firmware