Nvidia's rapid market cap growth to $3 trillion was primarily driven by its dominant position in the AI semiconductor market and the insatiable demand for its high-performance GPUs, which are crucial for powering generative AI applications like ChatGPT.