The mass of an electron is significantly smaller than that of a proton or neutron because electrons are classified as leptons. In contrast, protons and neutrons are classified as hadrons. Leptons are fundamental particles with much smaller masses than hadrons, composed of quarks.