Animals first developed fever as a response to infections: the higher body temperatures primed their immune systems. At the time, 600 million years ago, virtually all animal species were cold-blooded.