It's a safety device. Drops down to contact the frame so the pin can't hit the primer. When it's fully cocked the wege rises up so it will clear the frame and fire if the trigger is pulled.
Watch when you cock the gun slowly and you'll see what happens.