Original: This is done to remove ectoparasites, keep them in good aerodynamic condition, and waterproof them.
Simplified: They do this to remove ectoparasites, keep them in good condition, and waterproof them.