I recall back in the days when pedestrians also observed the rite. Men who wore hats would stand at attention with their hat removed. Women would cover their heart with a hand. It was nice. And yes, a comfort to the family. One of those civil things people do/did that didn't cost anything but let the grieving family know you were sorry for their loss.