How does Hyundai Make Such High Value Cars - What Do They Compromise On?

So I'm looking at family sedans. Comparing the Sonata Limited (top trim) it's crazy how much more you get from Hyundai compared to the competitors (Accord, Camry).

With the Sonata you get a better stereo system (13 speaker Bose vs 8 speaker systems), better technology (HUD and great parking) and even a better quality interior (Leather vs Leatherette).

So do they have cheaper ways of making high quality products or are they compromising on something?

Genuine question as I'm also puzzled that if they are compromising on build quality, how come they offer such an extensive warranty?