Because people needed a way to store electricity. The battery was invented around 2,000 years ago if you believe the Baghdad battery discovered in 1936 was a real battery. The Voltaic battery was invented in 1780. The Rechargeable Lead Acid Automobile Battery we use today was invented in 1859.