What is the logic behind giving a company money for the tariffs?
Well, the logic is the fact that the tariffs were illegal.
The honourable thing to do would be to pay that money back to the customers, but that would make the shareholders sad and grumpy, so it's never going to happen.