The Sanctity of life teaches that all life is holy and sacred, made with love by God, and it is only he who has the authority to take life away.
Therefore, CP defies the authority of God and his creation, so it is viewed as sinful.
Capital Punishment also disregards the teaching "thou shall not kill"
However, some would say God approves of taking life, if the criminal has in turn taken a life.