Vaccination makes sure that you have anti-bodies so that your immune system has a heads-start once you get infected. If you were infected before, your body also built anti-bodies.
Are there diseases where one knows (or at least has a good reason to believe) that having had the disease provides less protection than the vaccination?
This is a follow-up question to Is there a benefit of a COVID-19 vaccination if one had COVID-19 before?