Sure, we can call the granules rocks, but salt is digested as salt, our bodies use it in its own way, and it leaves us with no energy taken from it, while sugar is digested as something that holds energy we can intake.
Sugar converts to glucose which is later burned as calories by your digestive system. Salt dissolves into your bloodstream and is then excreted out through sweating or through your kidneys and bowels later.