When something great happens, don't most people just say, "good"?
The phrase, "good thing" could have fit as well. You're the one with profanity on your brain.
Psychologists call it, "word association". Doctor would say a word and you say the first word that comes to mind.