This is an ultra simplistic take. Iran does not like the role the US has in propping up Israel, entirely rational and understandable. Israel may not be recognized by our government as a "sworn enemy" but it's done infinitely more damage to the US and US citizens than Iran has. The only reason they're not sanctioned is because one of the ways Israel attacks the US is through bribery (AIPAC) and blackmail (Epstein).