From the answer:
Thank you for reaching out to us here in the Community, scottandgeoff , QuickBooks Desktop will automatically creates the Retained Earning account once you set up a company file to track profits from earlier periods.