Since the doorbell is hardwired why does the battery need to be recharged either manually or by the hard wired? Can’t it work with a dead battery?

Hardwiring your device only provides a trickle charge for the battery powered devices. The device will still need a charged battery to perform to its fullest potential.