Also, anecdote incoming, the largest budget I've ever had on a software project was for a "Defense" project. I'm aware that I'm a hippocrit btw and have made a ton of money from our industry and have now got to a point I am lucky enough to pick my projects to avoid questionable ones.
My point was, tech isn't trying to make the world better, we're trying to make a buck and solve interesting problems (some of which objectively make the world worse). Let's be honest with ourselves more.