Most people do this (Suicide) after they realize they made a mistake in hurting someone else. That's why you hear of a bad guy turning the gun on himself after killing someone. Beating up the girl was basically the same thing, just that he went to jail before he could kill himself.
It's like the flawed programming in the Matrix goes, "Hey, go fuck someone up, or even kill someone, then we'll run program Suicide."