UIKit uses third parties to define and use services. What is the reason for this dependency on external modules?

Users who integrate third-party libraries also have to read the documentation again, and sometimes unexpected errors cannot be resolved quickly. I don’t even know their code structure. Still, is there a reason for using third-party libraries more than expected?