There's no ambiguity or uncertainty here – the statement is just factually not correct. A vaccine does not need to "prevent infection", and stating that it does is wrong.
It's particularly galling when this kind of statement is made in a way that says or contributes nothing except a literal falsehood.