Backup doesn't necessarily mean "in case of grid failure". A gas boiler or a simple electric boiler is a valid backup to a heat pump being inoperative, in the middle of defrost cycle, or otherwise just unable to provide enough BTU/hr into the building due to an extreme cold temperature.
Particularly in temperatures where the heat pump is at/under 2.0 COP for a few dozen hours per year, an electric boiler makes a great deal of sense. It's almost as clean as the heat pump in the extremely rare times when it's needed for supplementation due to extreme cold temps, can allow for a more suitably sized heat pump to cover the 99% of heating hours [meaning greater efficiency there], is extremely reliable due to its simplicity, is fully automatable with existing controls, doesn't require local gas supply network, and is a pretty good match for a heat pump.
Particularly in temperatures where the heat pump is at/under 2.0 COP for a few dozen hours per year, an electric boiler makes a great deal of sense. It's almost as clean as the heat pump in the extremely rare times when it's needed for supplementation due to extreme cold temps, can allow for a more suitably sized heat pump to cover the 99% of heating hours [meaning greater efficiency there], is extremely reliable due to its simplicity, is fully automatable with existing controls, doesn't require local gas supply network, and is a pretty good match for a heat pump.