Is playing video games (Xbox,PS4 or PC) better than chess.

Short answer: nope!
Long answer: How many video games keep being played after a couple of decades? Chess has been around for centuries!

Clearly yes, If chess is so good than why the urge to make video games, howcome video games have a bigger fanbase?

There's a few things that make me happy and both video games and chess is in those things. Stop comparing things. Comparing leads to underestimating something that makes millions of people smile.

Interesting question... I myself, have been an avid gamer since childhood. I played on (Sega Genesis, Super nintendo, Nintendo 64, GameCube, gameboy, PS1, PS2, PSP, PS3, Xbox 360, xbox one, Xbox series.) Just to name a few that come to mind. Including most if not all of the accessories and hardware/software mods available to each kind. I found though that as the years went by, it took more and more exciting of a game to come out to impress me. That the people I played with stopped playing because they became busy with jobs, friends, relationships. Unlike with chess, many people with fulltime careers, families. Etc. Still can put aside 5-15 minutes a day for some blitz games or whatnot. Gaming can be a sort commitment, and I've noticed more social pressure from other players to keep on playing while I have responsibilities. You could argue it's the person I'm talking to, but I find many are like this and don't respect your free time. When I find a good gamer friend that, eventually they they stop messaging me all together or play with someone else on some other game. Having spent all that time on a game with someone that also doesn't seem to value my time, and for that game to lose popularity or my online friends to go MIA. Makes me believe that chess, is indeed more fun and a better way to spend your time.
Is gaming better than chess.