Causation can mean a couple of different things. Something can be a cause if it guarantees its effect, or if it is a necessary condition for its effect. When we say smoking causes cancer, we don't mean to say that it is guaranteed that if you smoke you will get cancer. Some people smoke and smoke, and never get cancer.
This is Elizabeth Anscombe's famous essay on the question.