just because the country on average get richer does not mean that everyone get richer. The inequality will also increase when opening up to global trade.

When opening up to international trade inequality tends to rise as well. Gender-Paygap seems to go down when opening up to international trade.