I think encapsulated in the quote (and what the point was) is the idea that Gold isn't going to do much but sit there and retain its value, whereas Exxon and farmland are going to grow in value over time and produce useful things. Befitting an investor's quote.
It's not saying gold has to have utility. Which it actually does fwiw as a commodity.