In our case it was due to the fact that we had life insurance before separation.
Both have a portion to cover off the obligation if anything happens to the other. Even if you are the custodial parent if something happens to you the other parent will need some assistance too as they will then be the only custodial parent and support for the child.