It is not my map, but it seems that the average IQ of all the people of a country is calculated in this map.
But you are right, for example, if 10% of Indian people are intelligent and 40% of German people are intelligent, the first number will be bigger than the second number.