Just like everything, until we decide to give it value. Gold is completely and absolutely worthless to us humans, we don't need it to function and it serves no biological function in our organisms whatsoever. But because we like it and there is a scarcity of it, we will trade goods for it. Just like with bitcoins.