The whole idea with the (modern, democratic) state is that certain task are delegated and exclusive to the state.
Revenge and killing people is for instance delegated to the judicial system, the police, and the military. Without it we would be back to tribal wars.
If you are just now discovering that the state holds itself to a different standard than its citizens, you must have been living under a rock.