There are things that are generally accepted as wrong, but for which, in practice, the optimal incidence over time is not zero.
A very simple example is disease. In general, we agree that disease is bad, but there are many diseases which it is better that people get over their life time. Chicken pox was a clear case, where getting the disease in childhood was good enough that parents would intentionally expose their kids to the disease. I say “was a clear case” because now we have a vaccine for chicken pox, but vaccines use the same mechanism: we intentionally expose ourselves to small harms. We can also see this in the rate of diseases like asthma in 1st children, where it’s likely that too-clean childhoods lead to health problems later in life.
A similar idea can be seen in something as straightforward as pain, where it is better to experience non-zero amounts of pain over the course of one’s life. Here, there is a difference, in that not-pain is defined in relation to pain, so that experiencing the evil helps to define the good, as well as to make us aware of it.
Finally, we can look at something broader like the homicide rate. One might think that zero homicides would be the ideal, but in fact a homicide rate of zero is more likely an indicator that we are over-policing, population homogeneity, low population, etc. It remains true that, all else equal, zero murders is better than not zero murders, but in practice all else is not equal: the observation that zero murders are taking place is not necessarily a good observation, and choosing between realistically achievable societies, we will choose one with a non-zero murder rate. More striking, a low-but-non-zero murder rate is likely to be predictive of a better society, i.e. if all you have to go on is murder rate, you should choose a society with a non-zero rate.
These are strange and seemingly difficult cases for consequentialist moral systems. They seem to point to a class of phenomenon which is understood to be negative in every individual case, but when summed across society shows that, though every case is bad, eliminating all cases is worse in practice.