The Heidelberg Catechism

Question 16. Why must our mediator and deliverer be a true man, and also perfectly righteous?
Answer: He must be a true man because the justice of God requires that the same human nature which has sinned should pay for sin; (a) and he must be perfectly righteous because one who is himself a sinner cannot pay for others. (b)
(Click through to see scriptural proofs.)