When the utility drops, your home goes dark because every circuit feeds from one source: the grid. Backup power adds a second source, a generator, and a way to switch your home over to it. The generator makes the power, and a transfer switch decides where your home pulls from, the grid or the generator, so the two never collide.
The transfer switch is the safety heart of the whole setup. It physically separates your home from the utility line before the generator takes over, so power never feeds back onto the grid where a lineman could be working. Skip it or wire it wrong, and you've created a serious hazard.
A generator doesn't replace your panel. It feeds it. The size of the generator and the type of transfer switch decide how much of your home stays on: a few critical circuits, or everything at once. Get that match right, and an outage becomes a flicker instead of a crisis.