Is that official? In spanish, decades ago, the word for battery was "Pila"
"Pila" is a heap of countable physical units, either stacked or disordered. But pila is commonly a fixture for liquids, like septic tank is pila séptica
And batteries were mostly lead-acid. Hence, a pile for/of acid.