Let’s look at evidence:
So to clarify:
1: N/A
2: Gambling on the street
3: N/A
4: Masking up and hanging out, especially in a group, for potentially nefarious purposes
5: Hanging out in or around a school you have no business being at or in.
6: Selling shit on public transportation or transportation hubs.
With the exception of the mask thing (which should be repealed for health purposes. We should encourage people to mask up when they are sick, COVID or not), that all seems fairly reasonable, and not at all what is happening in the picture. Unless OP is wearing a mask, I suppose.
In general, loitering is hanging out “with intent to commit a crime.” If you aren’t planning to commit a crime, you aren’t loitering.