I agree, it shouldn't have been in there. But that is only tangential to the reason why Trump pulled the US out of it. He despised China so much that he made sure to strengthen his personal businesses with them while simultaneously weaken the US trade partnership with their rivals.