There are two theories. The first is that if a mission failed (the goal was not achieved), wearing a helmet would give you more chances of survival for an upcoming suicide mission. Another hypothesis is that the helmet is part of the uniform and its use demonstrates respect for the Japanese military code of conduct.