It's a voltaic cell where a spontaneous redox reaction drives an electric current through an external circuit.