The benzoic acid is different from sodium benzoate, the main reason is because of their water solubility. Don't know what you observed, but if you looked at the pH of the solution when you dumped them in water, they would have very different pHs. A benzoic acid isn't soluble in water but one (sodium benzoate) would be soluble in water.