If they all stayed indoors, then the blood would save their first born when the angel of death visited Egypt that night.