You can't eat oil, either. You can't eat a car or a gun. Gold and silver have been the best medium of exchange for thousands of years. You can probably eat a Fed debt dollar, but it probably won't agree with you.
Sure, barter can be done, but gold and silver make things far more convenient.