the main purpose of a bicycle helmet is to protect your head from a fall of about 5-6 ft while having a large metal frame on wheel between your leg that could prevent you from catching your balance and protecting your head from the impact.
A helmet and speed have nothing to do with each other.
When doing other things like jogging you do not have that metal frame between your legs so you are better able to protect your head in case of a fall.