For resetting bios password we used to relocate jumper and reset it,How does changing jumper helps in resetting password?

What happens to Bios password while we change jumper ,how does the manual hardware (jumper) relocation changes/resets the password?