Bad words have been around for centuries, perhaps longer.
The D-word that sounds like a concrete structure used to hold back water was invented in the late 13th century.
https://www.etymonline.com/search?q=damn
The S-word used to represent human excrement has been around since 1600.
https://www.etymonline.com/search?q=shit
The F-word used for sexual intercourse has been around since 1535.
https://www.etymonline.com/search?q=f**k
So young people shouldn't be so shocked when they hear older people swear. Young people, if older people swear at you, it's for one of these four reasons:
1. You disappointed them.
2. You disrespected them.
3. You pushed their buttons.
4. You drove them crazy.
And if you push them any further than that, they may end up breaking something or hurting someone.