The main reason is the coder. Use whatever tool is comfortable.
That said, perl executes faster and has better security. CPAN gives massive leverage. You can get PHP to execute faster as well, but you'll need to resort to things like APC, and securing PHP properly is a pain in the ass. PHP doesn't have anything is the class of CPAN.