Retained earnings represent the accumulated net income that has been retained within the organization, while revenue refers to the total income generated from a company's primary business activities. Revenue is used to cover expenses and generate net income, which can then be added to retained earnings.