The fact that her husband put her in a room with barred windows, a room that was for children, just says that this man is treating his wife as if she was a child and not equal to him, mental illness aside. She tells him she wants the room downstairs with the flowers and she gets shut down for almost everything she asks him. This leads to the obsession with the yellow wallpaper and it's interesting that she ends up seeing bars in the wallpaper and then a woman behind those bars. It's like a reflection of herself, a way to force her to see what her reality is beneath the appearance, what Adams argued in regards to his own male life and existential drama.