They (WHO, CDC and FDA) evaluate the upcoming year's vaccine based on the flu strains they believe will be active that (next) year. They don't just recommend that the vaccine should contain strains that were active the previous year.
They aren't magicians, of course, and sometimes a strain that they didn't predict will start spreading and people get it. That's how viruses work. Some protection is better than none, however.