For me, it's because having my faith challenged by those outside of it causes me to have to dig deeper. An atheist will bring up the problems and holes in my beliefs, forcing me to examine them and reevaluate them. If something doesn't make sense, I'm going to have to address that, and when I do, my faith is strengthened.