You are right that a big amount gets released back when a tree dies, but it also feeds microorganisms which live in the soil and which enrich the soil itself, increasing the carbon content of the soil. Also, especially in wetlands and coastal areas plant material can sink underwater and get preserved on the sea floor, leading to sequestration, and explaining the higher sequestration rate compared to terrestrial forests.
You are right that a big amount gets released back when a tree dies, but it also feeds microorganisms which live in the soil and which enrich the soil itself, increasing the carbon content of the soil. Also, especially in wetlands and coastal areas plant material can sink underwater and get preserved on the sea floor, leading to sequestration, and explaining the higher sequestration rate compared to terrestrial forests.