This happens to a number of guys that get cheated on, especially when they catch the girl. Strong feelings of anger and humiliation, mixed with confusion and erections when they picture their girl getting railed by the other dude. Some proceed to jerking off while picturing the infidelity, followed afterward by guilt and shame, then back to getting aroused and jerking off again.