There are diseases that you can recover from without developing an immunity; tetanus is an example. The vaccine generates a much greater immune response than the actual disease.
Recent studies seem to indicate that tetanus vaccines are actually effective for at least 30 years. The UK and other countries don't recommend any booster shots for tetanus. Makes you wonder why we do in the US.