Claw machines are rigged, and the owner can program them to drop a toy after it gets picked up, giving you the illusion of near-success.