Otana is a very protective individual, and he was frustrated by Julia ignoring his warnings and getting to close to Kimya and baby Kanzi.
This stemmed from Julia being raised alongside chimpanzees in her formative years and absorbing their social interactions. After being attacked by Otana each time (for sitting too close to Kimya and the infant), she returned to sit next to Kimya again (as if seeking support like a chimpanzee would do).
I’ve seen several incidences of female gorillas banding together to support a female in the troop being bullied by the silverback (even a female they don’t like) if they feel the punishment is unwarranted. Aside from the fact she had a newborn in her arms, Kimya likely didn’t intervene as she didn’t understand Julia’s defiance of basic gorilla behavioural protocol.