Wearing a hat does not prevent the spread of infection.
Which of these sentences doesn't make sense?
[A] "you need a hat to prevent the spread of infection"
[B] "you need a mask to prevent the spread of infection"