The two basic sources of owners' equity are (1) investment by the Stockholders (paid-in capital), and (2) earnings from profitable operation of the business (retained earnings).
The increase in stockholders' equity arising from profitable operations is called retained earnings.
Retained earnings is derived from profitable operations.