Batteries work by doing a chemical reaction, usually akin to something like a piece of metal getting rusty when you leave it exposed to water/salt. This process creates electricity.
Different types of batteries use different metals and chemicals – nickel metal hydride, nickel cadmium, lithium ion, lithium iron phosphate, etc.
Some of these chemical reactions can only happen in one direction – you leave a shiny piece of metal out and it rusts and that’s that. Others are reversible, like if you could put electricity into a rusty piece of metal and make it shiny again. These are rechargeable batteries. Some reactions are reversible but not easily and only under certain conditions.
Regular alkaline batteries are one direction, and they are “charged” when you get them from the store but not in the sense that somebody built a battery and then added electricity to it before boxing it up. Someone put a piece of shiny metal and salt water together in a factory, and using it will rust the metal and make electricity.
As an aside, these different chemical reactions determine what the voltage of the battery is. Regular alkaline batteries are 1.5v because that is how much voltage the reaction generates. NiMH is 1.2v. Lithium ion is 3.6-4.2v. The only way to get higher voltage batteries is to take multiple cells of the same reaction and stack them together. You can’t buy a 6v lithium battery, but a 20v lithium battery is just 5 cells in a row (5 x 4v).
Latest Answers