Men's motivation for wanting to hug their female friends is 100% sexual. Think about it. How often do men hug their male friends? Almost never, unless it's some kind of celebratory occasion. But men want to hug their female friends every time they see/greet them. Why? Because they want to have sex with them and a hug is the closest thing to sex that they get at the moment.