Because otherwise there would be an incentive for airlines to simply sell tickets like crazy and cancel flights at their pleasure should they be unable to fill the seats? Without compensation, airlines could simply walk away from contracts by repaying the fare.