Different blocks have different resistances to explosions. Dirt walls will be easily destroyed by creepers, while two block thick cobblestone will resist most creeper explosions.