Why don’t all of subatomic particles in an atom contribute to the mass?

What subatomic particles effect the net chart of an atom?

Why don’t all of the subatomic particles in an atom contribute to the charge?