Why does OSM build a walking route through the subway

Well Node: 1564925175 | OpenStreetMap is shared between the path and the road which makes that a legitimate, if slightly odd, turn.

If they’re not physically connected then they should be split so they don’t share a node.