Shao's speech mentioned that in life you can choose to be sad all the time, or you can choose to be happy; he chose to be happy all the time, that was why he married Pei En.
The old adage says that water always finds its own level - in their case, they happily found a life partner in each other.