not all types of gambling can be profitable in the long term but there are some like poker or sports betting where you need strategy and if you have a really good one you can profit
I would argue sports gambling is probably the hardest thing in the world to have an advantage at. Unless of course you're playing in the game itself which is illegal.
The reason it is a lot harder, is because you have professionals picking against you.