The extra electrons (depicted here as yellow particles) that have built up in the zinc are drawn to the copper, which, by comparison, is electron deficient. This flow is what produces electricity.
In this setup, the zinc is the anode – the “negative” electrode where oxidation (giving away those electrons) occurs; the copper is the cathode – the “positive” electrode at which reduction (accepting those donated electrons) occurs.