The story
Folk is one of the oldest words in English: Old English folc, "people, nation, tribe", with relatives across the Germanic languages, among them German Volk. The L was pronounced.
Like walk and talk, folk went through a change that affected words ending in L plus K. The vowel before the L developed a glide, the L weakened, and in most accents it disappeared. Yolk followed the same path, and so did walk, talk and chalk.
The spelling is a record of the older sound. Some speakers pronounce the L in folk today, but dictionaries treat that as a spelling pronunciation; the standard American form is L-less.
