It must be a bug by case.
It is an exclamation that shows strangeness, surprise, admiration. It was widely used by Robin, Batman's eternal companion. It has a similar meaning to gee.