It's a sporting analogy - you've just saved the ball from going into your own goal.
In conversation, "good save" is a comment used after someone has said or done something to prevent an embarrassing situation.
A: Who's that woman? Her dress sense is awful.
B: That's my wife.
A. ...-ly good! Her dress sense is awfully good!
C: Good save.