The rest has been matched and synchronized to it using other sources. I'm not a climate scientist, but I would guess the best sources are ice samples from polar regions where it accumulates from top and melts from bottom. CO2 dissolves in water and when snow falls and turns into permanent ice in such places, it captures a snapshot of that period's atmospheric gas content, among that the CO2 level.