In my opinion gambling is very wrong to do, I know people get profit of it but not for a long time. These people have pure luck and mostly spend their profit in gambling again so they will be in the same pattern as before and lose more at the end.
So following your logic, stock market, currency trading or investing is the same as gambling. Because the symptoms are the same: people may or may not profit from these activities.
You need to be extremely lucky to be successful in trading area and people who lose money will most likely invest again. Thoughts?