Looks silly at first glance, but I think it is a very interesting question. Asking Google I found a lot of "they die", but no good research about the cause (admittedly, I only spend a few minutes). Only one other - still open - question on Quora: https://www.quora.com/Has-anyone-tracked-the-cause-of-death-... -- The only answer says it has not been studied thoroughly, but it is from someone whose professional and job title ("Biomedical gerontologist, Chief Science Officer of SENS Foundation") sound like he would/should know.
I think it is implied that the cause of death is ageing? What else would it be (lab fruit flies don't have predators)?