After all metals like lithium and most of the rest of the "alkali metals" and "rare earth metals" are relatively common, this issue is natural processes do not collect and concentrate them, as they are much more reactive and easily dispersed, so significant commercial deposits are rare compared to its crust concentration percentages.
Gold is a metal that naturally concentrates into deposits after aeons of time, as it is heavy and relatively non reactive, so there are many more commercially viable deposits than other metals with significantly higher abundance.
What matters is how easily the elements can be extracted and processed. Aluminium is 13% of the crust by weight, but was not possible to process before after around 1880, because electrolysis and large scale electricity production had to be in place first.
The mass of the earth [4] is about 200 times more than the crust -- almost 10^22 tonnes -- but the elemental composition of the core is unknown and very different from the crust. It's likely to be highly enriched in gold relative to the crust, because of gravitational separation (heavy metals sink down). Extrapolation from crustal abundance would give 10^13 tonnes, whereas one geologic estimate [5] gives 10^15 tonnes in the core alone -- a sphere 30 km in radius.
[a] excluding short-lived unstable elements and noble gases
[b] roughly, ~40% of the earth's surface (~5*10^8 km^2) is continental crust ~50 km thick
[1] https://en.wikipedia.org/wiki/Abundance_of_elements_in_Earth...
[2] https://en.wikipedia.org/wiki/Continental_crust
[3] https://en.wikipedia.org/wiki/Gold
[4] https://en.wikipedia.org/wiki/Earth
[5] http://www.smh.com.au/news/science/heart-of-gold-well-never-...