I realize this question is not about "home" improvement but as I had to deal with drain and vent lines recently, I was curious to note this installation at the Costco.
There is what it seems a condensate drain, with a P-trap and an air-gap at the bottom. Why the P-trap? What is the purpose, it should be AFTER the air gap otherwise I do not see how it helps anything:Note the P-trap on the top right corner