3 Functions of a battery

To provide electrical power to start the engine. A battery’s primary function is engine starting.
To supply additional current when the charging system can’t keep up with electrical demand.
To act as a voltage stabilizer for the charging system.