ELI5 answer: protons and electrons have equal but opposite electromagnetic charges, but they have other qualities that make them dissimilar- for example, protons have a lot more mass than electrons do. It’s those other factors that prevent electrons from clumping in the nucleus.