This typically occurs while stick drunk after getting home and then releasing the frustration out with a heavy session of jerking off and can lead to soreness or even swelling the next day.
Todd: "Oh man my dick still hurts from last night?"
Ben: "Oh so you DID get laid then hey?"
Todd: "Nah I missed out and then my ragebat got a little out of hand."