This post made an interesting point about what would be understood when the word battery is used.
In the U.S. at least, the word battery is so rarely used outside the legal phrase assault and battery that a listener would be pretty much guaranteed to assume it meant an electrical battery unless it was specifically disambiguated by context.
This prompted me to see if there is a difference in the etymology of each words. According to Wiktionary, they both have the same origin, the Old French baterie, which means "the action of beating". So this prompted many questions: How did the meaning of the word evolve in one case to "A device that produces electricity by a chemical reaction between two substances."? When was it first used as such? Or is there a mistake in Wiktionary concerning the etymology of electrical battery?