If you spend the same time studying programming that you need to spend to become a good chess player then you will likely become a professional programmer which means you will make a decent living in most countries of the world.
Also, you can build interesting systems that actually improve peoples' lives whereas in chess you just sit on your ass calculating and memorizing stuff that affect nobody at all outside the game.
Also, you can build interesting systems that actually improve peoples' lives whereas in chess you just sit on your ass calculating and memorizing stuff that affect nobody at all outside the game.