It is part of our Parliamentary democracy, in that we vote for the party not the PM. The leader of the largest party is the PM if they can command a working majority in Parliament, which Sunak can do as the new Tory leader.
But this is a very bad look, and I absolutely agree that we should have a GE now, it’s become ridiculous.