We've discussed this in psychology, and it's basically what wulfspade said. Certain words and gestures were uttered in the middle ages by peasants who worked, fought among each other, and acted basically near-uncivilized. These actions were shunned by the aristocrats and even the middle class as being a mark of incivility. This stigma endured through the ages, and as civilizations left the feudal system and entered a more democratic system, swearing stopped becoming the halmark of a brute, and started to become a vulgar utterance in an unpleasant situation. "Proper behavior" and pompous attitudes gave way to our more modern mindset, and with that, we gave up on "clean" language as a whole.