This is a pun on 'apatite', which is a type of stone. It's used here because it souinds similair to 'appetite' and since it's a stone, it's something that a geologist might study
The geologist went to the doctor because he had a loss of apatite .