Why do we use the death penalty?

Why do we use the death penalty?