With the amount of money I have spent whiles gambling and haven't won any major jackpot, I am not going to be donating anything to any charitable cause unless I have made a huge profits and to my mind most people view money from gambling as dirty so I doubt any charity will be thrilled to have them.
I understand you're perspective. Yes, that's a good reason why you will not donate some money if you win. All gamblers spent their money on gambling, and if you win, you must still calculate if you genuinely earn or just return your investment / the money that you spend. When we are playing, some ppl judge us, especially when we lose, but when we win that ppl want to grant some money that we earned.