Why Is Fox News Hosting The First Presidential Debate?

The network often acts as an arm of the Trump campaign. So why is it being given the role of impartial referee?