Share IOS app twice between Apple ID's
The app was never shared to your Apple ID and was not associated with your Apple ID in any way. If the app was still on the store and needed updating, your friend's Apple ID would be used. The app remains bound to your friend's Apple ID and thus you need your friend's Apple ID again to install it elsewhere.