The ICC claims rights in territories where the sovereign power in that territory has signed and incorporated a treaty that grants those rights. ICC jurisdiction is domestic law.
And then there’s the whole bit about the ICC prosecutor who issued the warrants (Khan) issuing them as an attempt blackmail a fellow Muslim ICC employee who he was raping into keeping silent with “think of the Palestinian arrest warrants”: https://archive.is/YrxUF