Thought experiment: I acquired two boxes of the same dimensions and same weight. One box contains $1\ \mathrm{kg}$ of water at room temperature while the other box has $1\ \mathrm{kg}$ of water, but in steam form, because the temperature of the box is above $100^\circ\mathrm{C}$. The volume of the boxes is large relative to the amount of space the $1\ \mathrm{kg}$ of water would take (let's arbitrarily say $10\ \mathrm{L}$). Both boxes contain the same amount of air (at $1\ \mathrm{atm}$) which is why the second box has water in steam form at $100^\circ\mathrm{C}$.
I put each box on a simple electronic scale to measure their respective weights. Unsurprisingly, the box containing water comes out to be $1\ \mathrm{kg}$. But what about the box containing steam?
My guess: Electronic scales measure the amount of force being exerted on it, then divide that force by $g$, to get the mass of the object. I think the box with steam in it will be exerting less force on to the scale and therefore the scale will think its mass is less than $1\ \mathrm{kg}$.