Sometimes they punish guilty people. Sometimes not. They also exist for non-murder crimes. Some weeks, two are executed in Texas alone and not always for murder.
Twin bombs kill around 10 and wound 100 in Cameroon town (Reuters)
from the article: PA court: Sale of Palestinian land to Israelis is punishable by death