It is intentionally meant to look/sound similar to "Thank God" (ie "God" vs "Goodness"), but as to explicitly not mention "God". This is an example of " minced oath " A minced oath is a euphemistic expression formed by misspelling, mispronouncing, or replacing a part of a profane, blasphemous, or taboo term to reduce the original term's ... More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.