Gambling is not the same as taking a risk. Taking risks in general can take different forms. One must consider not just the chances, but also the benefit and loss. In evolution risks pay off because failure merely means the loss of a few specimens while the benefit of success may be the creation of better conditions that would benefit all. Risk-taking in business can be measured by the same standards, some risks may be reasonable, while others may be irresponsible.
However, when it comes to gambling, usually there is a basic unfairness involved. Gambling businesses need to profit, so games are always designed so that the chances are biased against the gambler. Taking into account the chances of success and failure and factoring in the gain and loss, the average outcome for the gambler is loss. In other words, from a rational point of view, the gambler is a fool for gambling and the gambling business is taking advantage of the gambler's ignorance and profiting from it. The fact that this irrational and destructive activity is also addictive makes gambling a rather questionable business.
When gambling is done on equal footing, like in a game of poker, perhaps it may be considered more like a kind of a sport. However, the addictive element is still present in such cases.
And then there is another element -- wanting to make easy money. Such motives are associated with greed and laziness, which are not exactly regarded as virtues. In contrast, risk-taking in business involves research and can be regarded as "work", thus be considered a decent way of earning money, especially since it is usually meant to bring some additional benefit -- it is not just a leisure activity.