Someone else already answered it in a previous parent reply.
> You compare populations. Did a group who got the vaccine have more problems than an otherwise identical group that didn't? This requires careful study design and statistical analysis, of course.