It could be any number of causes, particularly egg related. Nobody's fault, but very sad.
I would be living in a pet cemetery if I buried every deceased chicken in my small garden over all the years I have kept them, so I wrap mine in an old pillowcase and put into an empty feed sack and then...