It had never been won by the Labor Party until Geoff Baker won it for the party at the 2021 election.
This sentence highlights a historical fact: the Labor Party had never before won this particular election, but Geoff Baker's victory in the 2021 election changed that.