That actually does happen. I remember a story just a few years ago of a woman that was praying at her open window. Praying, as it were, that God would protect her family from the terrible lightning storm that was going on. Zapppp....she was struck by lightning while praying at the window.
It is impossible for lightning to strike inside a closed room.