He could have eaten something toxic, he could have picked up a parasite, fungal or bacterial infection. He could have been bitten by something and had internal injuries or hidden infection from that. Sometimes ducks have strokes or heart attacks.
I understand the feeling of letting them...