When atoms are formed, first nucleus is formed and then, nucleus attracts electrons(we can call them free electrons) and we get an atom.
but in terms of Bremsstrahlung, what happens is:
In the case of an electron passing close to a positively charged atomic nucleus, the electric field of the nucleus would exert an attractive force on the electron due to their opposite charges. This attractive force can cause the electron to be deflected from its original path and change direction.
So why in Bremsstrahlung's case, attractive force causes electron's direction change + deacceleration and why in atom formation, this force actually attracts and makes the electron stay at its orbit. I looked at other answers, but still not fully able to grasp it since i'm a beginner. So would appreciate easy and correct explanation.