Answer
Malcolm Fraser was appointed as caretaker Prime Minister after the dismissal of Whitlam because he was the leader of the opposition party, the Liberal Party of Australia. The Liberal Party had won the previous election, but Whitlam had been able to form a government with the support of independents.