How has It’s Always Sunny In Philadelphia stayed funny for so long?

Introducing Endless Mode: A New Games & Anime Site from Paste
It’s Always Sunny In Philadelphia began as a scrappy, ignored pilot on a struggling network from a group of unknown actors, but it has since blossomed into one of the most critically and commercially successful sitcoms in TV history. It just wrapped up its 12th season and has at least two more on the way, making it one of the longest-running sitcoms in history, too. Now that it’s reached this milestone, people want to know how it did it.
Sure, it’s hilarious. The cast is perfect. The situations are fresh. But that’s true of many great sitcoms. How is Sunny different?