The Sage's ultimate wish to establish peace throughout the world was a goal that could never be achieved within his lifetime alone. Knowing that his end was approaching, the Sage entrusted his strength, dream, and legacy to his two sons. The older son, who inherited the Sage's "eyes" (his powerful chakra and spiritual energy), believed that power was the true key to peace. The younger son, who inherited the Sage's "body" (his powerful will and physical energy), believed that love was the true key to peace. On his deathbed, the Sage chose his younger son to be his successor. Overcome by bitterness and envy, the older son attacked the younger, beginning a war between them. Their feud would continue on through their descendants: the Senju clan and the Uchiha clan.
And that means too that either way he gained his "eyes" after he sealed jubi inside of him or he HAD IT already