Answer :
A chemical reaction between the metals and the electrolyte frees more electrons in one metal than it does in the other. The metal that frees more electrons develops a positive charge, and the other metal develops a negative charge.