I know the plumnbng code in NJ and probably most other states require that the vent connection be at least 6" above the flood rim before continuing horizaontally. I am just curious as to why 6". What is the hydraulics behind this rule?

Also, is it 6" as measured to the centerline of the horizonal run?