You have a point, but within the scope of what is illegal the police have a choice generally as to what they make a priority. Jaywalking is also against the law. Throwing resources into marijuana sting operations and buy/bust arrests is choosing to prioritize this over other crime, because man hours and budgets are a zero sum game.