Both, actually. The program is tried and tested for recovering addicts to build a strong foundation and prevent a relapse, but knowing you're not alone is just as important.
There's also sponsorship. That helps in the long run, especially if you can't go to meetings as often as you'd like or there's a crisis. It's good to have someone to call.