This question was explained before. A simple example:
Direct sunshine causes skin cancer. Avoid direct sun will prevent skin cancer. Therefore, people will no longer stay in the sun. To counter the argument, we say that causing skin cancer is only a by-product of sunshine (sun is essential to human growth etc.