Air is what makes marshmallows so light and fluffy! And those tiny pockets of air expand when you put a marshmallow in the microwave, causing the marshmallow to expand and become puffy.
As soon as the microwave stops, your marshmallow will go back down in size but will remain soft and sticky. Perfect for S'mores!