Some women are viewed as immoral in both epics. In Mahabharata, Ahalya is punished for adultery, such as Seeta that although she is sinless she undergoes the test of purity. Pre-marital & post-wedlock sex are also not allowed, for instance, the story about a maiden with child in book VII.
In addition, women are worried about their own future and fail to think about the future of their abandoned children and ironically expect favors from them.
Freedom is a relative term. It is dependent on the culture of the people or society. One's freedom does not necessarily lead to immoral behavior. However, what is moral and immoral is also dictated by the society and the mindset of the people, both the one concerned and the observers.