In most any kind of disaster, secondary effects kill way more people than primary effects. Even if it seems silly, taking effective measures against the secondary effects is very worth doing.
(Also, for nuclear bombs specifically, hiding under the desks keeps kids out of view of windows, and hence not vulnerable to being blinded/burned by a flash.)