Because php isn't a general purpose language. It's a rather clunky hammer outside of the web.
Additionally PHP is inherently slow not because of the interpreter but because of the design the language. Most websites aren't affected by this because many of the functions in the standard library are implemented in C and are very fast.