Either they're using an autoclicker or something else to stay logged in or they're not actually completely AFK and still check the game once in a while. I find that the majority of them fall into the second category.
Lol one time when I was like 9 years old I was watching a movie on the computer from the couch and the screen went black, so I took a reeaaaallly long piece of tape and put it from the mouse to my hand so I could move it and I fell asleep with it still on and my mom yelled at me.. :laugh: