Just because you’re underground doesn’t make it oxygen free. There is air in the casket, there is air in the vault and yes, air in the soil. There may not be enough for a human being but plenty for little microbs and insects. and yes there are plenty of anaerobic critters to help out.