Chickenpox and shingles may be closely related, but vaccination for the two is a separate affair. The pair share a root disease, varicella zoster, that activates to create each virus.
And yet, you need separate vaccines to prevent each disease.
Why is this? Why wouldn’t the same vaccine work for both? There are a few reasons.