“Consider that the nucleus of an atom can hold all kinds of electrons in moonlike orbit.”
It doesn’t hold them in orbit with gravity though, that is electromagnetism.
Possibly manifestations of the same basic force, but we haven’t established that connection yet.
The forces work together because ultimately they have to.