Sincere noob question - gold?

Can someone please explain the benefit of prepping with/hoarding gold? Is it because the dollar will collapse and it’s the only currency? What is its real value since it doesn’t do anything (i.e. can’t eat/drink it etc.)?