The UK Prime Minister is not the head of state of the United Kingdom. The current king or queen fills that role. It's a common mistake to believe that the head of government should also be the head of state, while countries like the United Kingdom and Germany actually have two different people for these jobs.