Terrariums do not need air because they are self-contained ecosystems that rely on the balance of their own internal environment. The plants in the terrarium produce their own oxygen, which is balanced out by the animals living in it that consume oxygen. The terrarium is also sealed, so the oxygen produced is not lost to the surrounding environment.