Being part of a swarm makes it less likely that any one individual will be eaten by a predator. This lets the desert locusts use more energy on their flight speed than on jumping and evading predators.