Why would a man sleep with his friend's girlfriend when his married even though he has always had a thing for her?

He must have been REALLY certain he would get away with it.