The runes represented wisdom, and Odin obtained that wisdom through self-sacrifice. The ancient verses capture the moment vividly.
Stanza 138: "I know that I hung on a windy tree, nine long nights, wounded with a spear, dedicated to Odin, myself to myself, on that tree which no man knows from where its roots run."
Stanza 139: "No bread did they give me nor drink from a horn; downwards I peered, I took up the runes, screaming I took them, then I fell back from there."