Why do you have to wear a costume on Halloween?

to scare the ghost I know ghost are not afraid of fairy princess or a princess or a fairy but its true