Some dialogs award items, and those items are auto-stacked where possible, regardless of auto-sort setting. (I think Forbidden Keys fall under that category, but I would have to check.)