That's a non sequitur. A society advances on numerous axis, but doesn't necessarily advance at the same time. Society can be immoral and enough scientifically advanced to have such machines. I'm pretty sure Romulans in that universe had replicators and they were known for their black ops division.