Should men apologise for swearing in front of a woman?

Si & Gary 22/02/2018

Gary recently picked up on a habit of Si's... Whenever he swears (which is very rare), or says something a bit rude - he'll always apologise to Sam before he says it.

Gaz reckons its a bit sexist, but does everyone else think!?