We know correlation is not causation. Consider following example.
Let's say we observe that on average people who smoke, die earlier that those who don't. This is correlation right? But how do you design a study that would exclude that above correlation exists because of following factor: people have a need to smoke because they have condition A, condition A is what makes them die early.