A person has fever generally due to infection. In an infection, whether bacterial or viral, the body's "homostat" is reset in order to try to kill off the invading organism as well as speed up all the bodies' reactions, including defensive ones to try to kill off the organism. It is also the effect of chemicals released by the bodies' defensive immunce cells, such as interleukins, that are involved in the immune response.