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.