1) Non linear payoff if it does work. A billion seems like a lot of money but at the volume of cars that Hyundai produces (millions), it's not a lot per vehicle and as a percentage of their revenue it's also pretty modest (about 1%). This stuff could add a lot of value to their cars.
2) Fear of missing out if somebody else manages. The nightmare scenario for Hyundai would be Tesla or some other competitor managing to launch something that actually works and then having to license their solution just to keep up; probably at great cost.
There are a lot of nay-sayers out there proclaiming at length how all this is a mission impossible. But the reason these investments are happening is that there are by now quite a wide range of autonomous taxis driving in a growing number of cities in the world. And they mostly seem to get their passengers from A to B without a driver. So, it's clearly not that impossible for this to work. Going from hundreds of bespoke cars operating for the likes of Waymo to millions of autonomously driving cars is the game here. Somebody is going to get there eventually. But not without a lot of investments.
Hyundai is opting to hedge their bets here. They are investing a lot more conservatively than e.g. Tesla. But they are not completely ignoring it either.