One cause can push up two things at once
You run a survey (the numbers are made up): people who sleep with their shoes on more often wake up with a headache. Among those who sleep in their shoes, 90% drank too much the night before; among those who sleep barefoot, only 10% did. Of those who drank too much, 80% get a headache; of those who didn't, 20%. Headaches in the shoes group are 72% from the drinkers (90% times 80%) plus 2% from the others, 74% in all; in the barefoot group it's the reverse, 8% plus 18%, 26% in all. The headaches come from the drink. Tell everyone to take off their shoes, and there won't be any fewer headaches.
The arrow can also point backward
Districts with more police also have more crime. The department sends officers to whichever district has more crime: the crime comes first, the police after. Pull out the extra officers, and there won't be less crime because of it.
Drawing lots spreads other causes evenly; splitting into layers holds them fixed
Suppose half of a whole group of volunteers drank too much. Have them toss a coin each night to decide whether to sleep in their shoes. The coin doesn't care who's been drinking, so the share of drinkers in the shoes group goes from 90% to half, and the barefoot group is half too. Both groups get headaches 50% of the time, and the gap goes from 48 percentage points (74% minus 26%) to 0.
When you can't draw lots, you can hold the suspected shared cause fixed and compare only among people for whom it's the same. Look only at those who drank too much, and 80% of both the shoe sleepers and the barefoot sleepers get headaches; look only at those who didn't, and it's 20% for both. With no difference within the same layer, the shoes are off the hook.
Where you can't draw lots, you have to find groups that have already been sorted for you. In 1854, the water pipes of two water companies in South London crisscrossed the same streets, and which company's water each home used had been decided by landlords or residents back when the two companies were competing for customers. When Snow looked into it, he could see no difference between the houses or the residents on the two sides; it was as if someone had drawn lots for him. The difference between the two companies was their water source: one took its water from the Thames downstream of the sewage outlets, the other upstream. In the first seven weeks of the outbreak, homes using the downstream water had 315 deaths per 10,000 houses, while those using the upstream water had only 37.
A conclusion from drawing lots also only covers the people in that trial. Using "correlation is not causation" to throw out all evidence is a misuse: when the evidence is incomplete, keep looking.