Victorian literature

Why Victorian literature depicts the miserable situation of women that belong to the upper class as they have to remain in the four walls of the house?