Why were US sailors released so quickly?

Why the US Navy personnel were returned so swiftly. Ten US sailors were taken into custody for entering its territorial waters, on Tuesday.