Ran into someone working at Palantir that was above the average foot soldier. They bragged about not having a moral compass. I think that some people enjoy being part of something influential, even if the influence is destructive. "Look at how much money I'm making, how respectable I look, and what interesting social and technical engineering challenges I tackle".
Btw, has anyone heard of Palantir internally cosplaying a paramilitary org? Ranks and designations and such on their equivalent of Discord. I don't remember the details now, but when I saw that it left the impression that these people are detached from reality. I wonder how pervasive this practice is.