It was also a comedy and that scene was played for laughs. I see it more as a 23rd Century person not knowing how to swear in the 20th Century, sort of if you went back to the 17th Century you wouldn’t know how to swear or insult someone in that time period’s vernacular, thou mutton-scented tallow keech.