Israel is surrounded by enemies looking to take advantage of a moment of Israeli vulnerability. Simply moving aircraft carriers gives those enemies pause.
Getting involved in this way prevents conflicts from spiraling.
You're not at all wrong my friend. The US should have moved the carriers there, but they should not have allowed this situation to develop as it has in the first place.
Because it's presumably cheaper to park an aircraft carrier in the area than to take the economic impact at home that an escalation would lead to (due to rising oil prices etc.)