The strain of influenza each year is different. In order to create enough of the vaccine companies need to start making it before it's known which strain will be active. They make an educated guess with varying degrees of accuracy. Some years they get it spot on, some years they don't.