Their core revenue comes from - in decreasing order - really expensive data center GPUs, somewhat expensive workstation / enterprise GPUs, and finally, expensive top-of-the-line consumer GPUs like the 3090 / 4090 (and upcoming rumored 5090) which they can mark up higher than the lower tiers.
I'm sure that Nvidia knows that even though consumers / gamers will complain, the companies and hobbyists buying them will have no choice and be willing to pay for that power and extra performance and VRAM, whether it be for creatives (3D or game creators) or AI / ML / LLM hobbyists trying to GenAI at home.