Short version: Stack Overflow allowed me to find answers I couldn't easily get elsewhere. Then I started being active myself because I liked how the site was organized and that I could help others while improving my own skills as well.
When I first got into programming in High School, around 2005, there was little well organized content online. We had computer science olympiads with difficult algorithmic problems that I enjoyed solving, but my teachers didn't care about such contests much, nor were they prepared to adequately prepare students for them, so I had little support from my teachers in terms of training.
We had a local online judge, like SPOJ, with a forum, and I was also active on an IRC channel where I could get help from some friends. I would also post questions on a C++ forum (you'd have to solve the contest problems in C, C++ or Pascal). However, on the online judge forum, people wouldn't always reply if you were stuck, at least not with enough helpful details. On the C++ forum, the answerers were mostly good programmers, but with little experience regarding competition problems. Same with my IRC friends.
I discovered Stack Overflow around 2010, when I was a CS college student. I was still active on some online judges since I liked solving such problems, and I wanted to go into research after graduating. I was googling for some algorithms, and I saw a link to SO. I found what I was looking for, and I liked the reputation system because it rewarded not only quality work but also quantity and long-term participation. I felt like I could trust high-rep users because they have proven themselves over time, and I wanted to be one.
I decided to make an account. My first question was quite well received, and I got an answer very quickly, although I didn't really expect to draw the attention of people familiar with such problems so easily. I was very happy, so I added some tags and started following them. Soon, I found questions that I could answer, so I did. I liked helping people, and seeing my reputation grow made me feel like I was appreciated and accepted by the community. It was a very good feeling.
I was very active throughout college, earning most of my current reputation around that period. It also helped me learn a lot more than my college classes would provide. I'd see questions I didn't know the answer to immediately, research or think about them for a while, then post an answer. I wouldn't have done that without SO.
I'd also see questions asking about more details regarding some subject I was told about in a class. Again, I wouldn't immediately know the answer, but after some digging around and pondering, I'd figure it out, post it, and it would usually be at least upvoted. Stack Overflow gave me a lot of material to self-study.
Not only that, but many times someone else would post a great answer, which I enjoyed reading and learning from. So it wasn't only self-study, it also felt like going to class and learning something very cool when opening an interesting question and seeing a great, detailed answer.
I also learned to take criticism better and admit when I'm wrong. Also not to post something until I am at least relatively sure of its correctness; kind of like think before you open your mouth (I have a few self-deleted answers, I feel like I still need to work on that a little).
In the previous 2-3 years, I've been less active, but I still posted some questions and answers. I rarely went more than a few days without accessing the site I believe, even if I only checked out a few questions. The site can very well be used to find out what's new about certain technologies from hands-on perspectives once you have a little experience with the site and those technologies.
This year, I've decided to be more active again. I'm learning a lot from the entire network, I am more active on the moderation side and I am also active and learning in tags related to my PhD. I've been a member for a little over 5 years, and barring some major changes, I don't plan to leave.