(Psychological / emotional perspective)

When we experience hostility within ourselves in a dream, it is often an accurate expression of an emotion we consciously have.

It is simply safe to express it in a dream, whereas we may not dare do this in waking life. Hostility is one of those emotions that can be worked through within a dream itself.