An inefficient framework that enables the thousands(?) of engineers at YouTube to reliably design frontends is well worth it.
On the other hand, maybe YouTube's code is a horrible duplicated mess and this is just the result of that. But still, what actual benefit other than aesthetics would you get?