Flies rub their hands together as part of their grooming routine. They use this action to clean their legs and antennae, removing dirt and debris that might interfere with their sensory abilities. This behavior helps them stay clean and maintain their ability to sense their environment effectively.