Remember the Hearts Bobbing in Soda experiment? Here's what happens when you open the bottle.
When conversation hearts dissolve, some of the color sticks together in a bubbly mass that still looks like a heart. When the bottle is opened, the bubbles expand, making the hearts bigger. Then they get pushed out of the bottle by the escaping carbon dioxide.