Mulla Ali al-Qari explains khalla in the sense of need and necessity. In this sense, a khalil is the one to whom a person turns with needs, on whom one relies in difficulty, and from whom fulfillment is sought.
Human friendship and mutual assistance are real, but no human possesses the power to satisfy every need in every situation. Complete reliance in all circumstances belongs to Allah alone.