Whether video games help or hurt your grades depends largely on the person playing and how much time they devote to gaming.
For someone who lets games take over, they can absolutely pull focus away from schoolwork and drag marks down. But plenty of players manage a healthy balance and never let a hobby get in the way of responsibilities.
There is even an upside. Some games teach history, weave in math and problem-solving, and can sharpen decision-making and hand-eye coordination. Those quick-thinking and coordination skills can carry over into real life, including sports.
Bottom line: if gaming is eating into time you should spend on other things, that is when it becomes a problem. For most people who keep it in check, playing games does not mean worse grades.