Question: why rhaegal had to die?
Answer: The Dragons Were Named For Dead Men Rhaegal died shortly after Dany learned that Rhaegar secretly married Lyanna Stark and fathered a son who is ahead of Dany in the line of succession, but who died before he got to even meet his son. Although Drogo was the strongest and fiercest man she ever knew, he died as well.