I guess one advantage could be to better use browser caches for these things? If you visit multiple websites that include the same fonts or javascript libraries, the browser can reuse the cache for them.
Nowadays, cache is partitioned by website (https://developers.google.com/web/updates/2020/10/http-cache...)