It is a principle of democracy that senior government figures can be held accountable.
E.g. in the US, Trump, a former president and a potential future president, is currently in several trials.
E.g. in Israel, where Netanyahu is under trial in several cases (unrelated to the ICJ) and where e.g. a former PM was convicted of several charges and served time in prison.