The differences in intermolecular interactions, the density of substance can change at different rates compared to the density of water, that's why the specific gravity also changes with changing pressure and temperature.