I used to wear a mask for sleeping in my old house as there was a street lamp right outside my bedroom window. If it is too light I cannot sleep & blackout curtains did not help.
Personally it helps me avoid visual hallucinations, I open my eyes from paranoia when I'm trying to sleep so a mask helps me avoid doing that. Another reason is because my housemate keeps the bathroom light between our rooms on and I have trouble sleeping then.