I think it's against the rules at most US airports, whether it's enforced or not is a different issue.
The "security reason" is they want their $2 airport fee, and the cabbies in line don't want others to jump ahead of them.
I'm flying out of SAN tomorrow, will try and find out what the rule is there.