Dogs are territorial pack animals; descendants of wolves and have a dominance pecking order. The most dominant gets all of the respect and most of the attention. This carries over to visitors who come into a dogs area or "territory". The dog will try to exhibit dominance over the visitor, be it human or another dog. As far as female dogs following men it's because the animal can sense who is the dominate one by size, and voice tone.
It does make a difference I've had 2 male dogs growing up now I have 1 female..she is more attached to me than anyone else in my house..my other male dogs tended to protect my mom when I was young and same with my sisters..never were attached to me...but idk if it's because now I use "Ceaser's way"