I usually quit because the game gets boring. Usually that happens when friends I make in the game quit or become very inactive. That also usually happens when I hit the max level or a satisfying level.
Only one game caused me to quit before I got to a satisfying level and that was Maple Story. The community on that game is just the worse I've ever seen.