Well, we do have laws against murder. The police think it's bad practice to not try to catch people who do it. And in serial killer cases, examining the body can help find repeat signs that help catch someone who would go on to kill again.
Everybody's not the same, but the man who sleeps on the streets deserves as much justice for his murder as the CEO who earns millions every year, as far as I'm concerned.