Well, it's not his fault the security problem endangers the community.
The US felony system is quite absurd. This guy is now marked for life for trespassing into a public space, based on the subjective opinion of a judge that despite him not harming anybody for 3 months, he is a danger to the community.