I assume the Death Star was following a “trail” left by the Millennium Falcon, instead of just tracking them, making them have to take the exact same route.
Another thing is that the Millenium Falcon also came out of hyperspace on the other side of the planet, which could lead one to believe that it was the only way possible to get to the system.