A battery stores chemical energy and uses a reaction to transform it into electric energy. So, batteries can have different chemical compositions inside them but the basic remains the same. When you use the battery the inner chemical of the battery reacts to each other and creates an electron flow. This is used as electrical energy.

Method for Producing Electricity from Batteries

No matter which type of battery it is, the battery will store chemical energy inside them. When we use a battery a reaction between the chemicals happens inside the battery. As a result, we get electrical energy. But at its core, all batteries are chemical energy storage.
Resource:
- How electrochemical cells work: https://www.britannica.com/science/electrochemical-cell
- Rechargeable battery technology explained: https://www.energy.gov/eere/vehicles/articles/rethinking-rechargeable-batteries
- Difference between anode and cathode: https://byjus.com/chemistry/difference-between-anode-and-cathode/
-
How lithium-ion batteries power EVs: https://afdc.energy.gov/vehicles/how-do-all-electric-cars-work