When you tap a microphone to test it, it creates a loud noise in the microphone, which can potentially send large transients through the system. This can cause damage to both the microphone and any speaker system the microphone is hooked into.