Kevan Lannister and Pycelle had been assassinated before this mess had happened. The culprit was Varys, according to Qyburn, as he would be the only one able to sneak in undetected in the Red Keep via the hidden tunnels and passages. She should have disposed of the sneaky eunuch long ago.