We form associations between two occurrences when they occur at the same time very often.
For example, if it happens regularly (but by coincidence) that someone gets sick if a distant relative visits, people might start linking those events and believe that there is an correlation between them, or even a causation.
This is often how superstitions arise.