Why is Jesus referred to as "the Word?"

John 1:1-2 (ESV): "In the beginning was the Word, and the Word was with God, and the Word was God. 2 He was in the beginning with God."

What is "the Word" (ὁ λόγος)? I always guessed it was some kind of Greek philosophical concept.