Several reasons:

- It's possible to do it that way, though not mandatory one way of the other.
- It enables more detailed mapping of the sidewalks, their properties, how they interact with other ways (crossings, where they change into other paths, etc.).
- Routing results can be better this way.

In a way it's a form of micromapping, but it's perfectly valid and not at all uncommon.