It's especially interesting once you consider that under high temperatures, nitrogen reacts with hydrogen to form ammonia and with oxygen to form nitrous oxides. Trapped underground, those gases would have been ideal for the formation of DNA-like molecules, and eventually life itself as DNA and RNA reacted with its environment, protected from the hostile conditions at the surface by a thick layer of earth.