They had an idea which they thought will be valuable. And they worked bery hard on making that idea a reality.
People complain that companies don’t have leadership with long term vision. The leadership of NVIDIA heard the idea of GGPU computation and put the resources behind the idea to make it a practical reality. Here the gap between “nerdy idea” to “product sells like hot-cakes”, is measured in decades. That is not just luck.
They absolutely got incredibly lucky.
Jensen Huang cheated on his wife AND conspired to evade arms control regulations, but he's still a genius.
Since NVDA had such a flat corporate structure with Huang having ~60 direct reports, I expect that the company will be lost for a period of time as they try to get their bearings. This is an opportunity for AMD, INTC and others.