Cargo was a bright spot for airlines, which turned to transporting goods while passengers stayed away during the pandemic.