In OSM there are 3 standard types of objects: nodes, ways or relations.

In OSM jargon this is a "way" (or « chemin » on the French website) but this generic name applies to all linear objects: streets, paths, walls, rows of trees, gates…

It does not mean it is something people are expected to walk or drive on.

In this case, we are talking about a wall.
This wall has been drawn correctly.  And it has proper tags (barrier=wall).

Walls are shown as plain lines (___) on the main carto, contrary to footpaths, as dashed lines (- - - -).

Hope this will help.