The force holding electrons to the atomic nuclei is the Coulomb electric
force, which varies as the inverse distance squared. Therefore, an
electron in an "orbit" close to the nucleus feels a very strong electric
attraction to the nucleus, and is bound more strongly to it than an
electron in a higher or larger orbit.