Tapping or tampering with the lid loosens the seal and allows the pressure to be slightly equalized. This makes it easier to remove the lid. The tops are typically vacuum sealed so denting the edge breaks the seal, making the jar easier to open.