Maybe this read helps explain it.
____________________
What we know so far about Covid-19 immunity -- and what it means for vaccine boosters
snip ------
It is difficult to predict how reduced neutralizing activity may affect Covid-19 vaccine effectiveness -- but across studies, antibody neutralizing activity seen among fully vaccinated people has been
generally higher than that observed among people who have recovered from Covid-19.
Data from clinical trials suggest that the protection offered by the Pfizer and Moderna coronavirus vaccines likely lasts at least nine months,
Marks of the FDA said in April. But experts have been at pains to point out that doesn't mean immunity stops at nine months. It means that's the longest volunteers in the trials have been followed to see what their immunity is, and collect data.
Immunity could last much longer; researchers just need the time to evaluate.