Poker has elements of both luck and skill. The luck element + wagering money is what makes it gambling.
On a long enough timeframe, the luck averages out.
On a long enough timeframe, the luck averages out.