It's not so much being unplugged as it is sensing whether the mains power is down. If it is, they stop backfeeding immediately, just like hardwired solar inverters do.
If this weren't done, there would be risk of electricution to anyone working on wiring in the house or on the utility distribution network.
Yes, the "balcony" style setups, sync to the power outlet of the house, which could be the grid, or it could augment a generator when the grid is down.