a vaccine works in the context of the whole population ... it is usually (very slightly) risky for the individual but as a group we all benefit from selfless individuals who value the community over their own selfish interest (vulnerable folks to be excluded from this comment, or course)