They didn't put in the biggest bid. They put in a bid that was a smaller amount of cash bundled with a waiver from the Sandyhook families that were to get a damages payout that they forgo their damages claim.
The third party evaluating the bids decided this was a better deal for Infowars' creditors, as that meant more of the bankruptcy money would be going to them, so that's why it was chosen.