Cloud customers can afford to pay more for those GPUs than gamers because they generate revenue with them, gamers don't.
So it make sense to have some product segmentation in place to prevent one market completely cannibalizing the other while leaving Nvidia with less profits.
The current situation is still caused by manufacturing constraints at TSMC for the cutting edge nodes which both the consumer and data center parts occupy so it makes sense for Nvidia to prioritize the higher margin parts.
There have been great points made that Nvidia should split into Nvidia, the general compute company oriented to data center customers with deep pockets, and in GeForce, the gaming GPU company with access to all the cutting edge tech of Nvidia but seeks to be more scrappy and optimize designs for rasterization performance rather than generic compute and chases smaller die sizes on cheaper nodes to be price competitive. This way the data center compute market will stop cannibalizing consumer gaming one and we'll be back to having better GPUs at competitive prices.