It enables us to determine which materials will float and which materials will sink when dissolved in a liquid. Density equals mass/volume and does not depend on shape or size, which allows it to be useful in identifying unknown substances.
Hope this helped!