It’s an expression of surprise or disbelief, in the same vein as “oh my goodness.” It’s a bit old-fashioned; nowadays you’ll mostly hear it in cartoons and the like, uttered by little old ladies.
No shade to DamnInteresting; I find it quite endearing.