Environment ultimately dictates behaviour. Instinctive, genetically defined behaviours are activated or deactivated depending on environmental conditions. The more conscious a species, the greater it's ability to override instinct.
Humans are undoubtedly more conscious than any other species on Earth yet we tend to underestimate how much of our behaviour is instinct driven. Equality requires the conscious acceptance and active pursuit of such. Hierarchy is primitive.