that was a deliberate choice, not an accident
You both made a wise choice in each other which is great!
However, it's still linked with an element of luck - obviously in retrospect I see my exH was abusive & a financial disaster from early on but that wasn't clear to me at the time.
I, too, thought I was marrying someone who loved me & shared my life values & goals.
That's the element of luck you have had. You can make all the deliberate choices you want - sometimes events are beyond your control.