The stuff that goes into the helmet to protect your head is not made of metal but polymer. Derivatives of plastics deteriorate over a period of time, hence, it reduces the protection required to protect your head. A brand new helmet not worn for 7 years needs to rest in peace.
But it doesn't mean that it won't protect you in the event of a crash, it would just protect less. How much less is anyone's guess.