/u/Bobby_Newmark gave an excellent answer to this question in regards to common law.
In summary, the cultural importance of death was such that it had to occur in a dignified way, even if it was an execution of a criminal. The hood was used to spare the audience from having to see the agonised face of the condemned and to save the condemned from being exposed at such a time. It was meant as a kindness.