It’s because Israel has captured the US government through a combination of lobbying and probably blackmail. The endless wars in the Middle East are to bolster them as a regional and then global superpower.
https://en.wikipedia.org/wiki/A_Clean_Break:_A_New_Strategy_...
The TikTok deal happened because too many young people were being exposed to anti Zionist content. It’s illegal to criticize Israel in many regions of the US, but not illegal to criticize the US. It’s illegal to boycott Israeli companies in many states, but not US companies. This war on Iran hurts everybody because of the closure of the Strait of Hormuz, except for Israel who now has a severely diminished adversary to their regional dominance. It’s not even a secret, Israeli’s boast about this on social media and have a whole hit list of countries they want the US to attack. Turkey is next on the list so expect to start seeing more seemingly random antagonistic rhetoric from the US about Turkey.