Why do electrons have fractional atomic masses?

It is because they have isotopes.