From the picture it seems that the green path does not go through a mapped pathway.
OSM won't tell you to go over random terrain, it will only guide you through paths that have been mapped as walkable. For all it knows, that terrain is thick bushes or something.