Swearing, although sometimes is upsetting, is useful to the user to add further emphasis on the point he/she/ they are trying to make.
Swearing at times is also useful if you are trying to have a conversation with someone who is of a lower social demographic to yourself.
I can provide examples if required.