I don't know for sure, but I suspect it's because when a country lets another nation use a plot ofnits land for a military base, that becomes, at least jurisdictionally, sovereign territory of that military's country.