Two liquids that have the same volume don't necessarily have the same density. Density = mass/volume, so they would only have the same density if they also have the same mass.
Density is an intensive property, which means that it doesn't depend on the amount of the substance present