Suppose that on some planet that is much colder than Earth, and the "rock" is made out of ice, you see a "volcano" that is erupting salty water. You figure out that the salty water comes from deeper in the planet where it got warm enough for a little pocket of ice to partly melt. The melted part erupted to the surface as watery "lava". The solid, icy part stayed behind inside the planet.