It actually doesn't eat the bucket, it just (quite successfully!) hides it by going into stealth mode until you open your inventory. Then, the bucket auto-magically appears in your inventory, not on your hot bar. And it didn't stack it on the other bucket that was in the inventory, it put it...