Easy: not everyone finds those businesses “immoral”.
Many find it blends very nicely with their own personal libertarian attitudes. This blending is made even smoother by the nice paychecks these industries offer. e.g. algorithm engineers, quants/mathmaticians, etc. in gambling businesses, site reliability and streaming engineers at adult sites. These are hard technical problems, of the exact same nature as any trading business or netflix. Why wouldn’t an engineer be attracted to them? Not everyone shares the same moral values. And a lot of technically minded folks tend to have some libertarian tendencies.