Then consider my examples. If the role of the state is to reduce harm, why is alcohol legal? Why are people allowed to be mean online? Why can cars go over 15mph? Why aren't there facial recognition cameras on every corner? Why isn't everyone on mood stabilizers?
Pretty obviously because the role of the state isn't to reduce harm to the exclusion of everything else. It has multiple goals which it imperfectly pursues. Just like any human institution or individual.