In many parts of the world (where power cuts are relatively frequent), we use "Uninterrupted Power Supply" (or UPS), which is an inverter connected to one fraction of the household circuit (loads like lights, computer etc..) and a battery.
I wonder what stops this current from going to the rest of the household circuit (heavy loads like boiler and refridgerator) or even the wider grid (ie power supply)?