You have a point but what about stuff like traffic violations? Nobody NEEDS to commit one, so should these fines be the same for everyone?
Also, following your example, person A making 75k/year and person B making 150k/year both have no necessitiy to steal groceries. Yet, if the fine was income-dependent, person B would have to pay way more.