In the story of how Odin lost his eye, the sacrifice he made to gain knowledge in exchange of his right eye only exemplifies his concern for his people. His action may look selfish for many because he also exchanged his eye to acquire wisdom only for himself.
However, despite the self-serving agenda he may have, he ultimately sacrificed his eye to effectively watch over and protect his people.