This analogy is based on sound similarity between word pairs. Grain and grail sound very similar but have different meanings, just as train and trail sound similar but have different meanings. Path, wheat, and holy don't create this sound-based relationship with trail.