Perl is old and was originally designed to be a generic server scripting language, it became the default server scripting language for web services in the 80's and 90's
While Perl is still in use there are more user friendly alternatives and since CGI can port to any language Perl is no longer the primary Server Side connecting language