When rain falls on volcanic rocks and washes them into the ocean, it causes a reaction over long time-scales that removes CO2 from the atmosphere, fixes it into rock. As that rock erodes and trickles down into waterways that eventually trickle into the ocean, it becomes permanently fixed in limestone at the bottom of the ocean.