The idea that no gentleman ever swears is all wrong. He can swear and still be a gentleman if he does it in a nice and benevolent and affectionate way.
Confront a child, a puppy, and a kitten with a sudden danger; the child will turn instinctively for assistance, the puppy will grovel in abject submission, the kitten will brace its tiny body for a frantic resistance.