It is not much different. I would not worked for gambling company either. In fact, gambling companies have to pay more (and do, there are open positions) because their pool of potential employees is smaller.
The exact same question can be asked to developers who help target gamblers with attempts to push them deeper into addiction.
The exact same question can be asked to developers who help target gamblers with attempts to push them deeper into addiction.