The NEC PA271Q and the Ultrafine 5K both cost about the same so the panel costs can't be that far from each other.
It is not because it is "prohibitively" expensive. The NEC display isn't "Retina". There is a trade off being made here. 10-bit color and 'legacy' 1440p , 109 ppi , 27" versus 8-bit + FRC and "new" 2880p , 219 ppi , 27" . The Apple panel is compressing the color data because there are far more pixels. ( that was more of an issue 4 years ago. At this point ( DisplayPort 1.3-1.4 era ) it really shouldn't be. )
The iMac 27" , Utrafine 5K , and the iMac Pro (the latter costing much more ) all have had the same panel. And just about nobody else is buying 5K , 27" panels anymore. ( it is primarily just Apple or proxy Apple. ). If Apple won't buy 10-bit ones then just aren't going to exist. The TCON and the color look up table handling need to be updated. That's mostly it. The backlight to do the color gamut may need some adjustments, but the 8-bit+FRC had to get to billion range anyway. The panel pixel density is the same.
The "expense" here is Apple shoveling 3+ year old tech with zero updates.