It’s a dramatic tale, but it definitely comes with a lesson.
Philosophically, the lesson here is probably that you reap what you sow. But in a literal sense, we’d say the lesson is that cheating can land you, well, homeless.
What do you think of this wife’s transgressions? Do you think she deserved what she got?