I dont thimk they are that rational and planning ahead. It is reflection of their values and feelings.
It is ideological. Both of them and their close rich supporters feel ICC goals are abomination on itself, they put limits on power and they are therefore "bad" and "tyranny".
Hegseth dont plan. As evidenced by Iran war daily. Trump dont plan legal issues. They dont exist in his head at all.