Cursing isn’t really a lack of intelligence. It’s just vulgar expression. Or, strictly speaking, a product of the way a person was raised.
If I stub my toe on a table, I’m gonna call it a piece of shit. Doesn’t make me stupid for doing it. Just means I choose to express myself with swear words.
Sometimes it’s just part of someone’s vocabulary. NOT indicative of their lack of intelligence.