The replacement of the Prime Minister between election cycles is commonplace in the UK parliamentary system. Five of the UK's six most recent PMs took over from the incumbent following an internal party election process, rather than a general election. It is, however, much less usual for an individual who is not already a Member of Parliament to fight a by-election with the specific objective of being installed, unopposed, as the head of government.
Whatever one's views on this process, an obvious drawback of it is that the new Prime Minister has not had the opportunity of a general election campaign, or many years in opposition or even as a recent MP, to develop and communicate to the public his policy objectives for office.