I've seen in pictures, paintings and films, but never really understood why. Is there a specific reason for it, or more like an idea?
There's always more to be said, but you may be interested in a now-deleted user's answer to How did the practice of blindfolding or hooding people who are about to be executed get started?