The High Septon was a traitor, plain and simple.
He was there when Viserys made the realm swear to Rhaenyra as his heir. He knew she was the rightful monarch, yet still helped usurp her crown, refused to anoint her, and hid behind his gods as an excuse.