We don't vote for PMs, we vote for MPs. I have no problem with continuity PMs like May and Brown leading their parties without winning a GE. Do Parliament get consulted in any meaningful way when EU bills become UK law?
However flawed UK democracy might be it is at least more democratic than the EU. Magna Carta was a long way from universal suffrage but it was still an improvement on absolute monarchy.