Maybe it's because of mental illness. My birth parents are divorced. I agree we shouldn't take our partners for granted and couples that stay together their whole lives might not do this.
Relationships go through a learning process too like many other things, so maybe if this happens once and you realised it, it won't happen again. It's nice that you think about this.