As we know that the centripetal force is provided by the electrostatic force of attraction.
The potential energy of the electron in an orbit of radius r due to the electrostatic attraction by the nucleus is
The negative energy of electrons shows that the electron is bound to the nucleus and is not free to leave it.
Good