In order to increase the lifespan of the battery most UPSes are line interactive, so they just pass power through them without having the battery connected.
When it detects power loss it connects the battery in a few milliseconds.

You can’t use a power bank to do something like this, they have no method of disconnecting their battery.