You still paid a commission to IB. The commission itself was not negative.
The rebate you received for providing liquidity (likely) made up for said commission and then some.
Welcome to the maker-taker model market.
Thanks that makes it clear. I guess my previous brokerages were just pocketing the rebates for themselves and charging me the regular commissions.