The issue is that our economic system is coercive. You need a job. Now this doesn't excuse you from doing any job but you also need to live.
Take the big tech companies. They're essentially military contractors now. Google, Amazon, Microsoft, etc are functionally no different to RTX, Boeing or Lockheed Martin.
But should you treat someone who works on Android the same as someone who works out on AI systems for military targeting? Probably not. Also, Palantir is fundamentally more evil than any of these tech companies. So it's tricky.
I do agree that online gambling as a whole is deeply unethical. There is no positive byproduct of this. Your salary is paid by people losing money, probably through addiction. And yes, you can say people have free will but you're still preying on and growing addiction.