Theists want their “gods”to be perfect in all counts. Not only gods but prophets too.
Most gods/prophets are real life characters on whom divinity is imposed. Some may be fictitious also.They are depicted as following a perfect path of life as per the prevailing societal values.
After their creation, after the godly tales are put into verses, it becomes difficult to edit it. Thus when the societal values change, gods/prophets look primitive. So they have to be defended by interpretations and reinterpretations and reminding of contexts.
Ram, the Hindu god, a character of the epic Ramayana is suffering from this change in values. Ram sent his pregnant wife Sita to the forest heeding to rumours of suspicion on her chastity. Ram did not believe in the rumours. But thinking that a King’s wife should be above any suspicion he abandoned her. At that time it was considered as an unselfish act of deciding to give away the most loved and precious “thing” ( yes, women = commodity) he had to be an ideal ruler.