Intel and AMD sell to the public. Their GPUs are not competitive with Nvidia's, but from their point of view investing in that business had a Catch 22 problem. Jensen Huang just solved that problem for them.
AMD is investing a lot, no? Intel has only been doing non-IGPUs for 5ish years (and have enough other financial problems, arguably their big mistake was not investing earlier).