Acute gastritis can cause fever when the condition is caused by an infection. The body’s immune system is activated and tends to fight the infection, resulting in a fever.