The countries don't pursue globalist agendas. Their corporations do. And they have benefited immensely because of that. The poor being helped is just a side-effect of that. In the end they care about profits, the side effects are irrelevant to them. It's just a peripheral side effect used for its marketing value, to turn the attention away from self-interest of the people negatively impacted.