It is something of both. Like playing Poker can be gambling, yet one can also play it seriously and systematically earn money.
The difference is that a Poker tournament is just entertainment for the audience. With prediction markets there is the very useful side effect of accurate forecasts.
you have completely misunderstood
I have zero interest in losing money by "investing" in outcomes of events that are essentially random
because it's not investing, it's gambling