The electrons revolving around the nucleus are actually attracted by it. But, as they are moving with high velocity, the acceleration caused by this attraction is just enough to cause a change in direction of velocity making the electron to move in a circular orbit around nucleus.