This is how they dry their wings. It's probably been raining and it's practically impossible to fly when they're wet. Several birds do this when they're wet cormorants are bet noted for it as they are diving birds.