The bug
Placing a shulker box under a lever places an empty shulker box, with the original one still in the inventory.
Steps to reproduce
Place a lever 2 blocks high
Place a shulker box beneath it
Go into your inventory and click where the shulker box was previously
→ You'll pick up a shulker box
Update : it seems to happen because of the lever above the shulker box, I could reproduce the bug somewhere else.