This term originates in the words addressed by Christ to Peter:

"I will give to thee the keys of the kingdom of heaven. And whatsoever thou shalt bind upon earth, it shall be bound also in heaven; and whatsoever thou shalt loose on earth, it shall be loosed also in heaven." (Matthew 16)