Because there is no such thing as immortal batteries.
When a battery is connected to a circuit, the charge moves through the circuit, and a chemical reaction occurs inside that separate the charges. The strength of this reaction diminishes over time and the battery eventually dies.