There’s a thing called parasitic draw, all electronics in the car have a very minute constant draw and over time it drains the battery. Also, shifting in temperature, natural decay and other chemical reactions causes the chemicals in the battery to lose energy over time.
Charging the battery revitalizes the chemicals and keeps the energy in.
Latest Answers