Gravity
Orbiting is like falling, centripetal forces.
They are on an established orbit.
Gravity from other bodies in the solar system is pulling them out.
Sun’s gravity isn’t strong enough to pull them in, only to hold them in place.
Rotation of planets or the Sun
The planets have their own gravity that counteracts the Sun’s.
Sun’s magnetic field pushes out.