1. It may have stolen some energy from another object (an accidental gravity assist), but we know that it didn't come close enough to anything big on its way though.
2. It came from outside the solar system and so entered with some velocity, and therefore will leave with roughly the same velocity it came in with.
We have well known mechanisms to eject objects from star systems so it isn't crazy to have things passing through. No-one questions it because high school level physics is enough to show why it is the only reasonable explanation.