Sometimes air gets trapped in unusual places. When these types of things are found, that air can be tested with modern equipment.
"Ancient air pockets changing the history of Earth’s oxygen"
https://www.sciencedaily.com/releases/2016/08/160822174234.h...