Funny how Jesus NEVER ONCE mentioned popes or priests, huh?
He ordained Peter for something.
And I say also unto thee, That thou art Peter, and upon this rock I will build my church; and the gates of hell shall not prevail against it.
And I will give unto thee the keys of the kingdom of heaven: and whatsoever thou shalt bind on earth shall be bound in heaven: and whatsoever thou shalt loose on earth shall be loosed in heaven.
Jesus ordained Peter to be the leader of His Church, St. Peter chose his successor, who chose his successor, who .....you get the idea. Somewhere along the way, the Cardinals (all ordained by the Pope) were given the duty of electing a Pope from amongst themselves.