Intel has treasury shares - its own stock that it owns. It had enough to cover this $5B deal. Nvidia could have bought that without screwing over existing shareholders.