Retirement tax questions

You are in essence paying the loan back to yourself, where it continues to accrue earnings tax-deferred.