I think she’s demonstrating not a belief in the moral necessity of such modesty, but respect for the holiness of the place, and the beliefs of those who do find such modesty morally necessary.
No, I don’t believe that in that it was just about the visit to the Wall. It was the whole visit. She wore it for more than just going to the wall.
So what you say may apply..but to the entirety of the visit.