The piston sometimes pushes it, so the hopper doesn't pick it up, but sometimes the item stays behind the piston, and the hopper picks the item. I saw that someone had reported a similar bug in bedrock, but I haven't seen it reported in java.
Related issues
duplicates
Attachments
Comments

[media]

Duplicate of MC-11293.