Retained earnings are a liability on the business which comes under the equity section of your balance sheet. This comes under liability because net income as shareholder equity is corporate debt.