There's a 2nd gravity well that you can reach which will slingshot you into escape velocity, I reckon you hit that.
The physics aren't perfect either, definitely room for improvement