In fact, this is a fly cleaning its body. Although flies are dirty, they need to be cleaned. They fly around the garbage dump every day, and it is inevitable that they will be contaminated with dirty things, which will affect their flight, so flies need to stop and "rub their hands".
Another reason why flies rub their hands is because flies fly everywhere and stick a lot of dirty things on their bodies. If these things are not removed, flies will feel a little heavy when flying, which will affect their flight. Flies will lose a little weight by rubbing their hands. Because there is no nose, flies have to rely on the taste and touch of their legs to distinguish the taste of food. If their legs are covered with dirty things, it will affect their judgment on food.