Black holes don't alway gobble
Sometimes they can slingshot a star right out of a galaxy.
It can happen when two stars from a binary system are sucked closer to the black hole, one is then capture and the other one may be slung out. It's called the Hills Mechanism
Here is a video of how it works.