The motivation in this case is to add autocompletion suggests that are local to the app and remove them when exiting the app, but I can also imagine something like an app that automatically removed typos that were accidentally added.