Preliminary data from Israel suggests that immunity acquired through natural infection may be more robust to variants like delta, compared to vaccine induced immunity. See this preprint and discussion from a couple weeks ago [1].
However, it's a massive ethical violation if the vaccine provides no improvement over natural immunity. It's still pretty bad if it only provides minimal improvement. "Just get the vaccine" would be an ok policy if there was a 0% chance of negative effects from the vaccine, but that is not true.
The thing is they never lied. At the time they made those statements the virus had only been studied for that long.
By the time the vaccines were created the "reinfection" idea was entrenched (even though not proven) and the vaccine was recommended just in case.