Is there any standard which defines that a particular connector or header on PCB has to be male or female?
Often the connector side that is "live", having voltage present on it while not plugged in, will be female/sockets and the mating half will obviously be male/pins. It reduces the chance of shock or shorting. Small signal stuff doesn't matter so much, but with power connectors it's more important to keep live contacts inaccessible.