Question: why did hrothgar kill himself?
Answer: Hrothgar named Beowulf his successor for ridding them of Grendel “and Grendel's mother”, even though he hasn't really killed Grendel's mother and Hrothgar seems to know that. Then he goes and jumps off a ledge and commits suicide.