British prime ministers have never been elected directly by the public.
The Prime Minister is an MP and head of the government. The leader of the party that wins the most seats in a general election is appointed Prime Minister by the Queen.
Government and Opposition roles
If you voted in the last election and voted Tory you knew who was going to be on if the party you voted for won.