many reason really but one could be, not everyone has access to the things other countries do/some have an exodus supply of certain things and some have a finite amount.
here’s an idea of it: country 1 is small but has an overload of oil production, country 2 is bigger but with not much oil around.