The drugs that China exports to the US aren't legal to be sold in China, but are legal (for them) to export to other countries.