We say “pardon my French” after swearing because in the 19th century, English-speaking people would drop French phrases into conversation to display class, apologizing because many of their listeners wouldn’t know the language. Then people hid swear words under the pretense of them being French.