This question already has an answer here:
In the 2014 movie "Interstellar" a part of the crew decides to land on "Miller's planet" (a planet orbiting the black hole at very high speeds) with a shuttle. Another crew member, Romilly, stays back on the ship.
The movie explains the big ship never actually orbits Miller's planet, but orbits the black hole on a very similar path as the planet, just keeping outside it's sphere of influence.
The crew stays on the planet for 3.4 hours, but due to time dilation effects Romilly experienced 23 years without them. And so do the people back on earth. I.e. the time dilation between Earth and the Endurance is negligible.
Why is the effect of time dilation so extreme (or rather: Why is there no time dilation between Earth and the Endurance) if the distance between the crew on the planet and the Endurance is so small?
Numbers and names taken from this timeline