Mining for gold is even more inefficient. You've got dig earth several kilometers down, build massive infrastructure, use harmful chemicals to purify it, lose lives etc etc
A kilo of gold once mined is perpetual. A bitcoin needs the whole network to keep running (and be large enough so that miners can't collude) to keep it's value.