Some men will not sleep* with a prostitute mostly because it allows them to maintain a feeling of moral superiority over those who have.
(I have never slept with a prostitute. So there.)
_
* Or pick any ‘bad’ thing e.g. cheat romantically, cheat on taxes, lie, gossip etc.