Electric eels (Electrophorus electricus) possess three specialized electric organs—Main, Hunter's, and Sachs'—comprising thousands of electrocytes (modified muscle cells). Each electrocyte functions like a tiny capacitor: ion channels and pumps move sodium and potassium across membranes, creating a potential difference. Stacked in series, thousands of these micro-batteries sum to macroscopic voltage.
Volume contributes, but the interacting factors are: electrocyte count, membrane density, neural firing synchronization, organ vascularization, metabolic state, and temperature. It's a whole-organism performance, not a simple geometric scaling.
Remarkably, the eel's own tissues are insulated against its discharge—otherwise it would stun itself every meal.