Sometimes items can get stuck in/on Hoppers and constantly fill up the Hopper slots without removing the item itself. Connecting a chest to the Hopper will fill up the chest over time and still the item is laying on top. This happened to me by breaking a Minecart on top of a Hopper.
Duplicate of MC-5998.