A Knight of the Seven Kingdoms - S8-E2
Stupidity: It is decided that those who cannot fight will hide in the crypt from the army of the dead, and Jon Snow suggests during the war council to put Bran in the crypt as well, "where it's safest." Jon knows full well that the Night King can resurrect the dead and add them to his army. Not only should he not suggest to hide Bran there, he should be telling everyone not to go anywhere near the crypt.
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 ★