In a galvanic cell, the transfer of electrons from anode to cathode leads to a net positive charge around the anode and a net negative charge around the cathode. The positive charge around anode prevents electrons to flow out from it so the potential difference becomes zero and the cell stops after sometime.