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.
One reason the shuttle turns on its back after liftoff is to give the pilot a view of the horizon. Why might this be useful?