It’s the “approached a judge” part that got him arrested.
Chances are he was not on calendar, did not ask permission to approach the bench and was in the well.
Typically only attorneys or per-se litigants are allowed to approach the bench only after asking permission, much less even be allowed past the spectator barrier. This guy made you could say a bad stupid move.