I mean, it was a rough place ["Wild Bill Hickok"], and you had to wear this kind of cloak that you were a badass, and the most efficient way to do that was with your language. Swearing was just a part of how you got by during the day, and it was quite historically accurate, that depiction.