I would say that this depends on the particular countries or countries in question, but the biggest and most probable cause is that No one wants to share limited resources.-water is precious and it's not very profitable to share.
However, depending on the particular countries, historical conflicts can also play a role.