Maybe the pressure cooker prevents the gunpowder scent form leaking out, so that it’s not detected by bomb-sniffing dogs.
I suspect that both factors are at work - elimination of odor detection as well as a containment vessel for the explosion.