When there were no machine everyone earn by hand but things have change. This is same as you open a shop and selling goods/grocery to customer. You buy low and sell high to earn profit but some time you get loss as you were not understanding the things completely and was over excited. In the end, luck counts everywhere you run a grocery store or stock/cryptocurrency. This is not gambling, you learn skills to earn money in stock business. If you are not skillful you will lose and go out of business by loosing your money. The fundamental rule is given by our prophet is middle way, don't take too risk, don't be greedy, always remain on middle way.
I do stock business, I know, how much time I give every day reading news, analysis, opinion of experts and in the end if I earn anything this is reward of my hard work.