You’re right about the possibility of skewed data sets, though. If the sample isn’t random, it could be skewed. Also some nations might have different populations with very different results, so the “average” might not actually represent anyone. But, there are ways to take these things into account.