I didn't understand why she dreamed about her husband raping her. does anyone know?
Because she was suffering from mental illness and she wasn't in touch with reality.
She has some serious mental illness problems and when you are that ill you can't understand real life from things you see in your mind. Some mental illnesses make you feel attacked when you are not.