Most importantly Iran can't afford to keep the strait closed to enforce this. If they block shipping their own will be blocked as well - which hasn't yet happened, they were still allowed to ship oil. Iran was already in terrible financial shape before the war and they aren't negotiating from a strong position of power to take those risks.