The Last Of The Starks - S8-E4
Character mistake: Gendry gets declared as Lord Gendry Baratheon of Storm's End by Daenerys. But he refers to himself as Gendry Rivers - the surname given to bastards from the Riverlands. Gendry comes from King's Landing, and bastards from there are called Waters, not Rivers. Given that Gendry is not an acknowledged highborn bastard, he should never have had a surname in the first place.
Answer: Basically it's because he broke his vow. A member of the Kingsguard is sworn to protect the king at all costs. Jaime elaborates more on the deed to both Catelyn Stark and Brienne of Tarth, telling Catelyn that no matter what course of action he took, he would be breaking one vow or another (i.e. if he obeyed the king, he would conversely be disobeying his own father), and telling Brienne that the Mad King was planning on burning all of King's Landing, but he did not bother to tell Ned Stark that. Ned Stark felt that killing Aerys was dishonorable and excessive. Robert Baratheon still could have usurped the throne without Aerys being killed.
Phaneron ★