While both are technically illegal, one is low risk and socially accepted behavior, while the other presents a real threat to many people's safety.
When police seek out and punish the first kind of behavior, people see it as predatory. When it's the second, most people are thankful.
In many poor communities, police seem to have their priorities exactly backwards: they zealously seek out and punish petty victimless crimes, while not investigating serious crimes due to a lack of resources.
People are harassed and delayed for no reason just because of the way they look or where they are coming/going from, even if its their neighborhood. They're also ticketed for minor offenses due to those same "reasons" meanwhile people elsewhere are not having those same offenses punished. You will find plenty of stories from people who lives in neighborhoods where this was applied where you literally have to allow extra time to come and go from your own home because its likely you will be stopped and questioned just going about your daily lives. That would not fly in more affluent communities.
"Proactive Policing" allows implicit and other biases of the police force to be acted on directly because there needs to be no crime to stop someone, its entirely on the polices judgement on who to stop and why.
“The law, in its majestic equality, forbids rich and poor alike to sleep under bridges, to beg in the streets, and to steal their bread.”
I'm not sure if your comment was satire or not. But if it isnt satire -- it is exactly why so many people are so angry.
The privileged attitude is best summarized as: yes, i'm doing something criminal, but so is that PoC, lets go after the PoC [while ignoring my crimes].
This is injustice because true justice is blind, not a tool for selective oppression.
[0]: https://www.epi.org/publication/wage-theft-bigger-problem-fo...