In some games the algorithms may work, but these games can be counted on the fingers. Poker, for example. And that, there is also luck, luck, because you probably do not know what cards are left in the deck, not for nothing it is recognised as a sport in its essence. But otherwise I agree with you, many people underestimate the factor of luck and do not realise that it is the main factor in games of chance
Most gambling is based on luck. We can say that in the case of sports gambling, skill and experience are required. However, there is no denying that along with skill and experience, good luck is also required. In many matches, we see that the favorite team fails to win and many gamblers lose their money. Again, there are many matches where the weak team wins against the big team. In these matches, we win very little in betting and those who win in betting are the lucky ones. Also, most of the casino gambling is based on luck alone. In slot machines, roulette, and lotteries, we do not need any skill.
Exactly, in every kind of gambling, be it skill-based or luck-based, we still need luck. Just basing it on the odds, predictions, data, or skills alone is not enough to win. Maybe it will only give you a slight advantage but not a guaranteed win. If it were purely based on skill, most of us would've study and practice hard already to gain the upper hand against the house, no matter how difficult it is and lazy we are.