Those chalk deposits were the result of sinking plankton that
produced calcium carbonate shells like foraminifera and
coccolithophorids, As discussed in Natural Cycles of Ocean Acidification, the creation of calcium carbonate shells pumps alkalinity to depth but
produces CO2 at the surface thus adding to higher concentrations of atmospheric CO2.