Fetching details from the dictionary...
to create a debt in one's favor (e.g. by doing someone a favor); to create an obligation in one's favor