You want to make sure that your paywall is presented at the right time, and that it presents the best offer for your user in the best way.
Third-party libraries help developers build apps faster but often come with a license.