Pedestrians are gazing at a display of books set out on a sidewalk under a tree.
Some women are wrapping gifts.
It's implied that the women are the pedestrians. They're gazing at a display and therefore aren't wrapping gifts.
People are not both under a tree and wrapping gifts.
Pedestrians and women are two different things.