For the same reason suicide is a sin.
It's selfishness. The people committing these crimes are selfish, it's all about them. If they only kill themselves, no one would care, and that eats at their sense of importance. In order to go out in a blaze of glory, they have to inflict pain on others so that they will be noticed. Again, it's all about them.
