Rogue planets captured by the Sun are able to make their way into the solar system
The Sun scoops up rogue planets as they fly by. The Sun is capable of capturing both small planets and Jupiter-sized gas giants that stray too close; our star then keeps them at the edge of the solar system.