A fever helps heal from viruses by raising body temperature to help damage the viruses. Shivering generates heat through muscular contractions.
Work Step by Step
The key here is to see the purpose of the fever and to review what shivering does-- create heat. You will see that the two (need for heat, production of heat) match up nicely.