There’ll be some backend reason. It might be that there wasn’t a link between the second refund and an outgoing transaction, so they just see it as income rather than replacing an outgoing transaction.
When I’ve used Klarna, the initial payment after the first purchase doesn’t give me cashback, but the monthly payments do subsequently.