Primary encephalitis may also appear after having an illness from an infection. For example, some viruses stay in the body after you get better and are no longer sick. The virus may travel to the brain and become active again, causing encephalitis.