> The judge probably didn't want to have to deal with the potential future mess if op didn't learn their lesson and got beat up by a cop.

A judge solving their own problems in this way is clearly abuse of power as well