Iran's Supreme Leader overestimates his strength; there were massive protests over collapse of Iranian currency (rial) earlier this year, put down by extreme force - sign of weak regime, not strong one; he doesn't care about pain inflicted on own people; believes he can outlast President Trump who will be under election pressure and from other foreign leaders.
Iran is now weaker still after the attacks; Supreme Leader believes he can impose his will with threat of violence.