EXPLANATION TWO example, when a metal carbonate thermally decomposes to form a metal oxide and carbon dioxide gas, the mass of the reaction vessel will decrease if it isn't sealed. But in reality, the mass of the metal oxide and the carbon dioxide produced will equal the mass of the metal carbonate that decomposed.
metal carbonate(s) → metal oxide(s) + carbon dioxide(g)
Remember from the particle model (see more in C2) that a gas will expand to fill any container it's in. So, if the reaction vessel isn't sealed, the gas expands out from the vessel, and escapes into the air around.