What is the legally relevant link in the pilgrimage/debt example?

Authority of Qiyas and Five Conditions for Sound Analogy