The salt in the water makes it more dense because there is more particles in the water
If you drop an egg in water it will not float but if you drop an egg in water with salt added it will float. Because the salt makes the water less dense and it is possible to float in it