The logic is real "dumb" or simple. The company that paid the tariff gets the refund.
Tariffs are paid at the port of entry and before you are allowed to physically get the goods out of the port. So the payer is not always the manufacturer. Sometimes it's an importer or middleman. Sometimes a retailer. It could be you if you shipped in a package from overseas.