I believe it's through their Alexa toolbar. Alexa's stats are mainly used as a guide rather than the actual traffic your site is receiving.
Alexa uses their 10M toolbar users, but think of it, how many internet user are there? Over a billion probably, so how precise the calculation should be... And, BTW, for webmaster sites alexa rank is usually higher, because more webmasters are using the toolbar.
funny thing is, alexa cannot tell you stats about alexa.com ... http://www.alexa.com/data/details/traffic_details?q=&url=alexa.com but in general: sites with an alexa rank < 1000 are super traffic sites, everything about 1000 is just random (comparing my own traffic stats with alexa's)