It's unknown why the ships have U-turned, though Iran has repeatedly said that vessels should only transit the strait through the authorized route designated by the Islamic Republic.
This is an ingested summary. Full reporting is available at the primary source below.