It's a Skinner box. If the pigeon never gets a reward, it'll lose interest in the key. If it always gets a reward it'll hit the key, but not that much because the reward is always the same and its boring. If the reward only occurs sometimes, the pigeon'll go nuts hitting that key. We're the pigeons, and the "randomness" is constantly being tweaked to make sure we never get bored.
The point is, if the reward not just occurs rarely but were actually-kinda-disappointing, the pigeon gets even crazier than it had been huge jackpots, somehow.
Discrepancy between perceived and mathematical expectation is a big factor in keeping us hooked. So techniques to exaggerate the former are used.
One clear demonstration of this I have seen is the lootbox screen in a pay-once game Vampire Survivors[1], which developer has background in casino software. This one is rather absurd that I almost believe it's intended for cultural preservation.
1: https://www.youtube.com/watch?v=20pFsokokjo