Neither can a murder.
The difference is that a murder is carried out by a depraved individual. An execution is carried out by the state. The people. Us.
Is that a double standard? Damn straight, it is. I hold the people acting in my name, exercising their just powers by the consent of the governed, to a higher standard than I do perverts and criminals and terrorists. When did that become wrong?