Obviously, you cannot handle money matters if you have a problem with gambling because there's a risk that you will steal money from the company to finance your gambling addiction. There is already a lot of news related to that.
The most problem the gambler will face is Embezzlement of funds.
For those who don't know what Embezzlement is, care to read this.
https://www.investopedia.com/terms/e/embezzlement.aspBut there might be some, that is a problem with gambling yet they only take it personally. They don't let others know and more important is, they don't steal other people's money because they are afraid to commit a crime. They are scared to go the jail and they can think of other worst things that can happen to them like they are going to get killed so they stay away from trouble as much as possible.
These kind of people can still do their jobs perfectly because at the end of the day, their goal is to work properly so that they can get a better salary and they can then use that money for their gambling habits. No need for my boss to transfer me to other departments, as that can only make me feel uncomfortable.