Simple answer is that it's just a plot device.
A more complex answer is that the distances between stars is actually quite vast, however the size of those solar systems, relatively speaking, isn't. So executing an "emergency" jump where all you care about is no longer being in the place you currently are should be trivial. For example, jumping 1 LY in almost ANY direction should place you safely outside of the star system you are currently in without risking collision with another star etc.
In order to make the best of it, the ships should orient themselves such that their direction is perpendicular to the systems plane. ie: point up or down with respect to the orbit of the planetary bodies. Then turn on and shut off after around 1LY of distance has been traveled. That would be about as safe as you could get.
Now the question is whether hyperspace travel requires a large gravitational body (such as a star) to be at both ends of the maneuver. This seems to be implied, and taking gravitational effects into account would make sense with the idea that it takes longer to go one direction than it does the reverse.
If so, then a destination needs to be selected and the orbits and position of various things within the local system as well as the destination need to be taken into account. By "things" I mean anything from planets on down to small asteroids or other floating junk. After all, you don't want to stop in the middle of a 100m wide asteroid. That would take a bit of time, especially if it had to rely on scanning the remote system, calculating where those items are now (versus x years ago if using light as the primary means of knowing what's there) and where they should be when you arrive.
All of that said, it should be entirely possible to have calculated potential escape routes prior to entering the initial system. Kind of like setting a way point. I'd expect such a thing to be standard procedure when entering a combat zone in case your carefully laid out plan meets with unexpected problems. Obviously they can calculate hyperspace jumps when the ships are moving, so the exact position doesn't appear to be necessary. This would change the problem from one of spending time calculating the route to one of loading the necessary data from storage; which should be trivial.
All of this, regardless of the technical issues of how big or fast their computers are or even how complicated it is to calculate, leads me to believe that the only real answer is that it was a plot device that they didn't have a real answer for but felt the idea of a retreat had to be squashed quickly in order to advance the story and keep the tension up.
In reality, a fleet met with overwhelming odds would immediately withdraw unless there was a strategic reason for sacrificing itself. In this particular scene that reason existed: weather the destruction in the hope of being able to get a shot at the deathstar if the shields were ultimately taken offline. Quite frankly, Lucas should have had Ackbar state to press the attack for that reason rather than quibble over retreating.