Why have the governments of Iran and Iraq historically had disputes over rights to the Shatt al-Arab?

It is one of the mains routes of access to the Persian Gulf from both Iraq and Iran. Without control or assurances of usage of the Shatt al-Arab, each side's monetary benefits are in jeopardy because the Persian Gulf is the route through which petroleum is most easily transported.