It is much more complicated because ICANN runs the process (a California Corp) but they have delegated things to countries associated with country code
I think you're confusing IANA and ICANN, and neither of those "runs" ccTLDs, each is designated to the nation it represents, many of who have decided to "outsource" the management of the registry functions.