When people are inhibited from meeting their basic needs legally by structural impediments to their progress like severe inequality, they sometimes try to meet their needs via methods that are destructive to society, like crime, whether petty or violent. That behavior is usually damaging to people, property, or the fabric of society.
This is a reason why such crime is strongly correlated with areas of endemic poverty.
People have a strong will to survive, one way or another. We can provide them the tools and resources to do so in a prosocial way, or spend the resources defending ourselves against the crime that results from poverty stricken circumstances.