Alternately, it could unlock the phone while also erasing specific parts of it, like message history and call logs, potentially replacing them with something you'd set up previously.
Edit: and obviously it would disable the duress pin and set the unlocking pin to it.