I wished I could find this article again -- it was an analysis of games that were designed to be deliberately addictive but not fun. Examples were things like ProgressQuest. This was right around when gamification became a fad on the internet (around 2012).
It's all dopamine hacking.