The Messenger of Allah (sal Allahu alaihi wa sallam) said: “Women are to be kept in hiding. Indeed when she leaves her home, Shaitaan keeps an eye on her. Certainly a woman is closest to Allah when she is in her home.” [Tabrani]
The more precious a commodity the more carefully it is guarded, for the greater its chances of being stolen.
Truly, a woman is safe from mischief while she stays in her home. When she steps out of her home without necessity, she is highly capable of being used by Shaitaan.
This is why it has been said in a Hadith that when a woman comes in front of a non-Mahram, she comes in the guise of Shaitaan. [Abu Dawud]