The companies that drilled these cores decades ago couldn’t have known the scientific treasures inside.