The voltage of a self-discharging battery drops only when it has a load.
It is the capacity of a battery that discharges, not its voltage.
The 9V battery in my smoke detectors is almost 9V when it is old and dead. But it cannot provide enough current to sound the beeper. When the smoke detector tests the battery then it provides a load.