It's just how government works: it aims at a target, and hits something else. Economists call it "unintended consequences." Protectionists deny it all exists.
So your solution is to let our companies fire American workers all they want to and move lock, stock and barrel overseas?
We have a different definition of patriotism.