People have their reasons, but ultimately they have to feel safe / want to work together too.
That's not a justification of any given military action but more about the complexities in some regions. We think in terms of nations, some places there are so many other layers... sometimes it's not even just nation vs nation politics playing out.