Yeah it's because when you leave a ship, it takes you to it's back.
But as in a hangar, you'll go in fact, at the back of the entity which contains the entity you're in.
And so you end up far from it.
Maybe setting a recall about entering position in the referencial of the ship and making it as...