He resigned due to having sex with his wife? In some marriages it may be an unusual occurrence, but I’m not sure why you’d have to resign because of it.
I think that it is not unreasonable to speculate that was the reason they gave and not the "real" reason for firing.