I don't know where you get that but:
NATO DGP
The combined GDP of all 31 NATO members, alongside impending addition of Sweden as a member state, amounts to a staggering $45.93319 trillion (calculation below).
Placing this figure into context, the world’s GDP stands at approximately $100,562 trillion (nominal, 2022). Consequently, NATO’s GDP constitutes a formidable 45.65 percent of the global GDP.
All five initial member states are members of the G20, with a combined nominal GDP of US$28 trillion (about 27% of the gross world product), a total GDP (PPP) of around US$65 trillion (35% of global GDP PPP), and an estimated US$5.2 trillion in combined foreign reserves (as of 2024).
Also see this list to see how insignificant the BRICS members are compared to the combination of EU, US and Canada: https://www.nationmaster.com/country-info/stats/Economy/GDP
I misread the first quote (have also fixed my highlighting). I now wonder where the number in wikipedia comes from if you add up the GDPs from my third link, the BRICS countries are nowhere close to the the combination of EU, US and Canada, which basically make up NATO...
Edit: Maybe because their numbers only go up to 2012