Pick block moves items and removes their nbt
When I have a block with custom nbt in my inventory (through Ctrl+ScrollClick), and I put it in the main area of my inventory (out of my hot bar), then when I ScrollClick the same kind of block (no Ctrl)it is moved from where I put it into my hotbar, and its nbt is removed.
This also affects named spawn eggs - they lose their name when they are moved when you scroll click an entity.