>>28148154>>28148463Fever happens when your brain increases the set point for your body temperature. It might do so to kill off bacteria, viruses or parasites.
Once a new, higher temperature point has been set, you will feel cold and start shivering, because you are in fact still below that newly set point.
If the body lowers that set point again after a while, you will feel hot and start sweating because you are in fact still above the newly set point.
It's like a simple thermostat.