That is because, 1 liter of distilled water, exactly weighs 1 kg. So, in case a solution is prepared using distilled water, you can gauge the mass of the solvent, directly from its volume. Same is not true for other solvents. So, if you are using any other solvent, other than water, weigh it on a scale to know its mass in kilograms.