It comes when you _replaces_ existing single item with the stack in mouse. So you get the one item from the ingredient cell and the whole stack goes to the ingredient cell.