A more technical answer is this. Maximal extension of the simplest eternal black hole solution (Schwarzschild solution) has a non-traversable wormhole. Such an eternal solution is not physically realistic because the realistic black hole forms through gravitational collapse, so is not eternal. And even if it was realistic, the non-traversable wormhole, as its name suggests, cannot be used for travel. Nevertheless, it's easy to ignore the "non-traversable" stipulation and fantasize what would happen if black hole contained a wormhole which was traversable. Mathematically, it is possible to imagine wormhole geometries which allow time travel, under certain conditions perhaps even to the past, which is where the inspiration for SF stories of this kind comes from. In fact, I think the first SF story using a wormhole for space travel was "Contact" by the astrophysicist Carl Sagan, who used the idea of wormholes suggested to him by the physicist Kip Thorne.