FIFA vs UN nations

Most countries recognised by the UN are also recognised by FIFA, but why is it that some overseas territories of countries recognised by the UN are listed as countries by FIFA. For Example, some include Curacao (Netherlands) and New Caledonia (France). Can anyone understand why FIFA would recognise these as countries or can you list some other examples.

Idk if they are recognised as countries. Maybe they are but I think they’re just allowed to play as a separate nation.

Gibraltar, for example. They aren’t recognised as countries, but as teams that can play and be separated from their original country.

It is weird, isn’t it.