The web (and XML, for that matter) is primarily text oriented, so a language that's good at dealing with text is well suited to the web, and much, much faster to develop with than a low-level language like C.
There are a lot of people out there who just want to create simple dynamic web pages. A good language should accomodate them, as well as more experienced programmers.