Hey
@helios1234 , for every electron that enters the capacitor plate connected to the negative terminal of the battery, one electron leaves the positive side of the battery, so they end up having equal charge.
As for why that happens: you've probably heard an electric field is constant across a capacitor, so it would actually be strange if it didn't happen since on either side electrons will have the same "push" or "pull" being provided by the battery.
You may as well ask why it is that electrons in a battery enter the positive side at roughly the same rate they leave the negative side. Imagine if they didn't. Local bunching up of electrons would create electric fields that in different parts of the wire where electrons were entering at a faster rate than they were leaving, therefore speeding up electrons in that area until they were all moving at around the same average speed again.
The same applies to capacitor plate: if electrons bunched up, even for a tiny bit, on a single plate, it would create a local electric field and therefore slow down the rate of electrons entering the negative plate for a millisecond and speed up those leaving the positive plate for a millisecond until the charge on each was the same (remember, the magnitude of an electric field is proportional to the amount of charge in some area, and you may not know this yet but the magnitude of the electric field is proportional to the drift velocity of the electrons, which is basically on average how fast they move from one end of the circuit to the other. I think is always wise to read more about electric fields in a circuit and in different components in general, because that truly helps you understand the flow of electrons better).
I hope that made sense, tell me if you need some clarification.
Cheers!
-Josh