The CGI standard lays down the rules for running external programs in a Web HTTP server. External programs are called gateways because they open up an outside world of information to the server.
See also: HTTP