Because all sides have so much to lose, so they'll pursue maximalist goals. The US retreating essentially means giving up the Gulf and by extension the Middle East, which is central to their doctrine of energy domination and a huge part of their leverage over Asia.
Iran on the other hand is fighting for its survival and needs to expel the US from the Gulf to ensure they can nevet attack them again.