Thanks for your question.
The Australian Constitution gives the House of Representatives the power to choose which of its members should become the Speaker. There is no rule that states the Speaker must be a member of the government but this is often the practice. This is because the government is the team with the support of the majority of members, and the government uses this majority to vote in a member of their own team as Speaker. However, there can be exceptions to this practice. In 2011 Peter Slipper was elected Speaker, despite the fact that he was in the opposition. He then left his team and became an independent member while he was Speaker.
It is also important to remember that while cross-bench—independent and minor party—members are not part of the government team, they still have their own policies and beliefs. Therefore, they may not necessarily be any more impartial than a Speaker from the government.