If you are more generous and satisfied with what you are earning then you will give the remaining amount to the charity no matter of it is from gambling or through hard work.
And there is someone who want to keep all their money and still want to make more and more,we can't expect them to give charities.