Video games are programs written for a specific system, exactly like the software on your computer. Without programming there would be nothing for the hardware to run — no code, no game.
Everything on screen, from the physics to the dialogue, exists because a programmer wrote instructions telling the machine what to draw and when.