it has been discussed so many times in many different topics about differences of gambling and investing.
they are not the same thing. investment is something that you can manage and more importantly something that can give you profit consistently but gambling is not at all like that because in long term you will end up losing money instead of making a profit.
You should be knowing that there is no rule that investments should give us consistently profits because not only in casino investments or in gambling but any investments got a risk of losing our money. We make investments to grow money but in many investments they won't give any guaranty for profits.