A doctor could give you the clinical version, but the short answer is immersion. You do not just watch the action on screen — you feel it and become part of it, and in the games that do this well, your whole body responds.
Physically, that response is adrenaline. Your brain treats a near-miss or an ambush as a threat, the sympathetic nervous system fires, and heart rate and blood pressure rise to ready you for action. Competitive tension does the same thing even when nothing on screen is dangerous, which is why a close match can spike your pulse as reliably as a jump scare.
Loud audio, caffeine and the fact that you are sitting still all amplify it. For most players it is harmless and passes quickly; anyone with a cardiac condition should treat it as a reason to moderate, and ask a doctor about their own limits.