He didn't do badly in the last election. He doesn't have the full support of the party, but neither had Truss, and who really does in the first place, especially when things are not going so well?
It's easy to say "Tories bad, they got to go", but it's not that simple.