This is the most common reaction humans experience on earth. Matter is not destroyed, but recombines in a chemical reaction to form a gas, as oldman pointed out. We call this "burning."
But the sun doesn't burn as in a typical chemical reaction. It's a nuclear reaction, where instead of recombining into a gas, matter is actually destroyed and turned into pure energy. And the reason the sun doesn't burn out right away is because a tiny amount of matter when obliterated into pure energy, creates an extraordinary amount of energy with no fundamental byproducts, except radiation (the atomic bomb), but the sun is so hot it creates a different type of nuclear reaction that is even much more efficient called fusion, which ends up making even more energy. from the original matter and energy contained in itself, so that it burns for billions of years, but it does eventually burn out, with quite spectacular and destructive consequences to an area larger than our solar system.